QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#533107 | #8644. Tricolor Lights | Nevll# | 0 | 27ms | 4580kb | C++14 | 1.3kb | 2024-08-25 17:23:10 | 2024-08-25 17:23:11 |
Judging History
Anna
# include "Anna.h"
# include <bits/stdc++.h>
# define ll long long
# define fi first
# define se second
using namespace std;
namespace {
int variable_example = 0;
}
int conv(char x) {
if(x == 'R') return 0;
if(x == 'G') return 1;
if(x == 'B') return 2;
}
pair<string, int> anna(int N, string S) {
if(N <= 130) {
string V = "";
for(int i=0;i<N;i++) {
if(S[i] == 'R') V += 'G';
else if(S[i] == 'G') V += 'B';
else V += 'R';
}
return {V, N};
} else {
string V = "";
vector<bool> cek(3, 0);
cek[conv(S[0])] = 1;
cek[conv(S[1])] = 1;
if(cek[0] == 0) V += "RR";
else if(cek[1] == 0) V += "GG";
else V += "BB";
cek[0] = cek[1] = cek[2] = 0;
cek[conv(V[0])] = 1;
cek[conv(S[2])] = 1;
if(cek[0] == 0) V += "R";
else if(cek[1] == 0) V += "G";
else V += "B";
for(int i=3;i<N;i++) {
if(S[i] == 'R') V += 'G';
else if(S[i] == 'G') V += 'B';
else V += 'R';
}
return {V, 130};
}
}
Bruno
#include "Bruno.h"
# include <bits/stdc++.h>
# define ll long long
# define fi first
# define se second
using namespace std;
namespace {
int N, L;
} // namespace
void init(int N, int l) {
::N = N;
L = l;
}
int bruno(string u) {
if(L <= 130) return 1;
if(u[0] == u[1]) return 1;
return 2;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 5
Accepted
time: 23ms
memory: 4296kb
Manager to Aoi
Start Success 8 RGGBRBBG
Aoi to Manager
Start 0 0 GBBRGRRB 8
Manager to Bitaro
Start Success 10000 8 8 GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBR...
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: 14ms
memory: 4364kb
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: 26ms
memory: 4580kb
Manager to Aoi
Start Success 2 BB
Aoi to Manager
Start 0 0 RR 2
Manager to Bitaro
Start Success 10000 2 2 RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success R...
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: 19ms
memory: 4324kb
Manager to Aoi
Start Success 28 RRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GGGGGGGGGGGGGGGGGGGGGGGGGGGG 28
Manager to Bitaro
Start Success 10000 28 28 GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGG...
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: 5ms
memory: 4288kb
Manager to Aoi
Start Success 60 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Aoi to Manager
Start 0 0 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR 60
Manager to Bitaro
Start Success 10000 60 60 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR Success RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR Success RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR Success RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR 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: 17ms
memory: 4364kb
Manager to Aoi
Start Success 130 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 130
Manager to Bitaro
Start Success 10000 130 130 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 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: 1ms
memory: 4364kb
Manager to Aoi
Start Success 131 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GGBGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 130
Manager to Bitaro
Start Success 10000 131 130 GBGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 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: 9ms
memory: 4292kb
Manager to Aoi
Start Success 8 RGGBRBBG
Aoi to Manager
Start 0 0 GBBRGRRB 8
Manager to Bitaro
Start Success 10000 8 8 GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBRGRRB Success GBBR...
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: 9ms
memory: 4368kb
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: 27ms
memory: 4280kb
Manager to Aoi
Start Success 2 BB
Aoi to Manager
Start 0 0 RR 2
Manager to Bitaro
Start Success 10000 2 2 RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success RR Success R...
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: 25ms
memory: 4580kb
Manager to Aoi
Start Success 28 RRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GGGGGGGGGGGGGGGGGGGGGGGGGGGG 28
Manager to Bitaro
Start Success 10000 28 28 GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGG...
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: 25ms
memory: 4292kb
Manager to Aoi
Start Success 60 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Aoi to Manager
Start 0 0 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR 60
Manager to Bitaro
Start Success 10000 60 60 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR Success RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR Success RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR Success RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR 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: 6ms
memory: 4284kb
Manager to Aoi
Start Success 130 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 130
Manager to Bitaro
Start Success 10000 130 130 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG Success GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 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: 1ms
memory: 4276kb
Manager to Aoi
Start Success 131 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Aoi to Manager
Start 0 0 GGBGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 130
Manager to Bitaro
Start Success 10000 131 130 GBGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG WA
Bitaro to Manager
Start 0 0 1
Manager to Checker
0.00
result:
points 0.0