QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#518206 | #8644. Tricolor Lights | green_gold_dog# | 0 | 640ms | 4604kb | C++20 | 1.2kb | 2024-08-13 18:06:18 | 2024-08-13 18:06:18 |
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 (clock() <= CLOCKS_PER_SEC * 1.5) {
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
Wrong Answer
Test #1:
score: 5
Accepted
time: 627ms
memory: 4288kb
Manager to Aoi
Start Success 8 RGGBRBBG
Aoi to Manager
Start 0 0 BRBRGGRR 8
Manager to Bitaro
Start Success 10000 8 8 BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBR...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #2:
score: 5
Accepted
time: 621ms
memory: 4252kb
Manager to Aoi
Start Success 1 G
Aoi to Manager
Start 0 0 B 1
Manager to Bitaro
Start Success 10000 1 1 B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Succ...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #3:
score: 5
Accepted
time: 592ms
memory: 4316kb
Manager to Aoi
Start Success 2 BB
Aoi to Manager
Start 0 0 GR 2
Manager to Bitaro
Start Success 10000 2 2 GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success G...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #4:
score: 5
Accepted
time: 576ms
memory: 4392kb
Manager to Aoi
Start Success 28 RRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 BBBGGGGGBGGGGBGGGGGGBBGGGBBG 28
Manager to Bitaro
Start Success 10000 28 28 BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBG...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #5:
score: 5
Accepted
time: 640ms
memory: 4600kb
Manager to Aoi
Start Success 60 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Aoi to Manager
Start 0 0 GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG 60
Manager to Bitaro
Start Success 10000 60 60 GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Success GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Success GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Success GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Succes...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #6:
score: 5
Accepted
time: 600ms
memory: 4308kb
Manager to Aoi
Start Success 130 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 BBBGGGGGGGGGGGGGBGGGBBGBGBBGBGBBBBBBGBBBBBBBGGGGGGBBGBBBBBGGBGBBGGGBBGBBBBGGBBGBGBGBGGBGBBGGGBGGGBBBBGGGBBBBGBBBGBBBGBGBBGBBGBBGBG 130
Manager to Bitaro
Start Success 10000 130 130 BBBGGGGGGGGGGGGGBGGGBBGBGBBGBGBBBBBBGBBBBBBBGGGGGGBBGBBBBBGGBGBBGGGBBGBBBBGGBBGBGBGBGGBGBBGGGBGGGBBBBGGGBBBBGBBBGBBBGBGBBGBBGBBGBG Success BBBGGGGGGGGGGGGGBGGGBBGBGBBGBGBBBBBBGBBBBBBBGGGGGGBBGBBBBBGGBGBBGGGBBGBBBBGGBBGBGBGBGGBGBBGGGBGGGBBBBGGGBBBBGBBBGBBBGBGBBGBBGBBGBG Su...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #7:
score: 0
Wrong Answer
time: 574ms
memory: 4396kb
Manager to Aoi
Start Success 131 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GBBGGBGGBGGGGGGGBGGGBBBGBBBGGBBBBBBBGBBBBBBBGGGGBGBBGBBBBBGGBGBBGGBBBBBBBBGGBBGBGBGBBGGGBBGGBGGGGBBBBGGGBBBBBBBGBBBBGGGGBGBBBBBGBGG 130
Manager to Bitaro
Start Success 10000 131 130 BBGGBGGBGGGGGGGBGGGBBBGBBBGGBBBBBBBGBBBBBBBGGGGBGBBGBBBBBGGBGBBGGBBBBBBBBGGBBGBGBGBBGGGBBGGBGGGGBBBBGGGBBBBBBBGBBBBGGGGBGBBBBBGBGG WA
Bitaro to Manager
Start 0 0 1
Manager to Checker
0.00
result:
points 0.0
Subtask #2:
score: 0
Skipped
Subtask #3:
score: 0
Skipped
Subtask #4:
score: 0
Skipped
Subtask #5:
score: 0
Wrong Answer
Test #80:
score: 70
Accepted
time: 506ms
memory: 4372kb
Manager to Aoi
Start Success 8 RGGBRBBG
Aoi to Manager
Start 0 0 BRBRGGRR 8
Manager to Bitaro
Start Success 10000 8 8 BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBRGGRR Success BRBR...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #81:
score: 70
Accepted
time: 558ms
memory: 4308kb
Manager to Aoi
Start Success 1 G
Aoi to Manager
Start 0 0 B 1
Manager to Bitaro
Start Success 10000 1 1 B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Success B Succ...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #82:
score: 70
Accepted
time: 582ms
memory: 4352kb
Manager to Aoi
Start Success 2 BB
Aoi to Manager
Start 0 0 GR 2
Manager to Bitaro
Start Success 10000 2 2 GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success GR Success G...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #83:
score: 70
Accepted
time: 562ms
memory: 4604kb
Manager to Aoi
Start Success 28 RRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 BBBGGGGGBGGGGBGGGGGGBBGGGBBG 28
Manager to Bitaro
Start Success 10000 28 28 BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBGGGGGGBBGGGBBG Success BBBGGGGGBGGGGBG...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
1.000000000000000
result:
points 1.0
Test #84:
score: 20
Acceptable Answer
time: 560ms
memory: 4396kb
Manager to Aoi
Start Success 60 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Aoi to Manager
Start 0 0 GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG 60
Manager to Bitaro
Start Success 10000 60 60 GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Success GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Success GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Success GRRRRGRGGRGGRGGGGRRRRRGGGRRRGGGRRRGRRRGGRRRRRRRRGGRRRRRRRRRG Succes...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
0.285714285714286
result:
points 0.28571428570
Test #85:
score: 10
Acceptable Answer
time: 592ms
memory: 4392kb
Manager to Aoi
Start Success 130 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 BBBGGGGGGGGGGGGGBGGGBBGBGBBGBGBBBBBBGBBBBBBBGGGGGGBBGBBBBBGGBGBBGGGBBGBBBBGGBBGBGBGBGGBGBBGGGBGGGBBBBGGGBBBBGBBBGBBBGBGBBGBBGBBGBG 130
Manager to Bitaro
Start Success 10000 130 130 BBBGGGGGGGGGGGGGBGGGBBGBGBBGBGBBBBBBGBBBBBBBGGGGGGBBGBBBBBGGBGBBGGGBBGBBBBGGBBGBGBGBGGBGBBGGGBGGGBBBBGGGBBBBGBBBGBBBGBGBBGBBGBBGBG Success BBBGGGGGGGGGGGGGBGGGBBGBGBBGBGBBBBBBGBBBBBBBGGGGGGBBGBBBBBGGBGBBGGGBBGBBBBGGBBGBGBGBGGBGBBGGGBGGGBBBBGGGBBBBGBBBGBBBGBGBBGBBGBBGBG Su...
Bitaro to Manager
Start 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
Manager to Checker
0.142857142857143
result:
points 0.14285714290
Test #86:
score: 0
Wrong Answer
time: 568ms
memory: 4260kb
Manager to Aoi
Start Success 131 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GBBGGBGGBGGGGGGGBGGGBBBGBBBGGBBBBBBBGBBBBBBBGGGGBGBBGBBBBBGGBGBBGGBBBBBBBBGGBBGBGBGBBGGGBBGGBGGGGBBBBGGGBBBBBBBGBBBBGGGGBGBBBBBGBGG 130
Manager to Bitaro
Start Success 10000 131 130 BBGGBGGBGGGGGGGBGGGBBBGBBBGGBBBBBBBGBBBBBBBGGGGBGBBGBBBBBGGBGBBGGBBBBBBBBGGBBGBGBGBBGGGBBGGBGGGGBBBBGGGBBBBBBBGBBBBGGGGBGBBBBBGBGG WA
Bitaro to Manager
Start 0 0 1
Manager to Checker
0.00
result:
points 0.0