QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#518207 | #8644. Tricolor Lights | green_gold_dog# | 0 | 1075ms | 4612kb | C++20 | 1.2kb | 2024-08-13 18:06:32 | 2024-08-13 18:06:33 |
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 * 2.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: 1023ms
memory: 4608kb
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: 884ms
memory: 4348kb
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: 1022ms
memory: 4324kb
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: 922ms
memory: 4396kb
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: 964ms
memory: 4376kb
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: 902ms
memory: 4268kb
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: 936ms
memory: 4316kb
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: 1019ms
memory: 4312kb
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: 1075ms
memory: 4608kb
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: 994ms
memory: 4320kb
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: 987ms
memory: 4284kb
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: 927ms
memory: 4316kb
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: 1002ms
memory: 4612kb
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: 1001ms
memory: 4304kb
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