QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#518203 | #8644. Tricolor Lights | green_gold_dog# | 0 | 0ms | 0kb | C++20 | 1.2kb | 2024-08-13 18:04:30 | 2024-08-13 18:04:30 |
Judging History
Anna
#include "Anna.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
mt19937 rnd(228);
const ll len = 130;
char to(ll x) {
if (x == 0) {
return 'R';
}
if (x == 1) {
return 'G';
}
if (x == 2) {
return 'B';
}
return 'A';
}
pair<string, ll> anna(ll n, string s) {
string ans(n, 'A');
vector<ll> nums(n);
for (ll i = 0; i < n; i++) {
nums[i] = rnd() % 3;
}
for (ll i = 0; i < n; i++) {
set<char> all;
all.insert('R');
all.insert('G');
all.insert('B');
all.erase(s[i]);
all.erase(to(nums[i]));
vector<char> a;
for (auto i : all) {
a.push_back(i);
}
ans[i] = a[rnd() % a.size()];
}
return make_pair(ans, min(n, len));
}
Bruno
#include "Bruno.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
mt19937 rnd2(228);
const ll len = 130;
char to2(ll x) {
if (x == 0) {
return 'R';
}
if (x == 1) {
return 'G';
}
if (x == 2) {
return 'B';
}
return 'A';
}
vector<ll> arr;
void init(ll n, ll l) {
arr.resize(n);
ll now = 0;
while (true) {
arr[now] = rnd2() % 3;
now++;
now %= n;
}
}
ll bruno(string u) {
return 1;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Instance #1 Time Limit Exceeded
Test #1:
score: 0
Instance #1 Time Limit Exceeded
Manager to Aoi
Start Success 8 RGGBRBBG
Aoi to Manager
Start 0 0 BRBRGGRR 8
Manager to Bitaro
Start Success 10000 8 8 BRBRGGRR
Bitaro to Manager
Start 0
Manager to Checker
0.00
result:
Subtask #2:
score: 0
Skipped
Subtask #3:
score: 0
Skipped
Subtask #4:
score: 0
Skipped
Subtask #5:
score: 0
Instance #1 Time Limit Exceeded
Test #80:
score: 0
Instance #1 Time Limit Exceeded
Manager to Aoi
Start Success 8 RGGBRBBG
Aoi to Manager
Start 0 0 BRBRGGRR 8
Manager to Bitaro
Start Success 10000 8 8 BRBRGGRR
Bitaro to Manager
Start 0
Manager to Checker
0.00