#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;
pair<string, int> anna(int n, string s) {
string t(n, '.');
if (s[0] == 'R') {
if (s[1] == 'R') t[0] = t[1] = 'G';
else if (s[1] == 'G') t[0] = t[1] = 'B';
else t[0] = t[1] = 'G';
}
else if (s[0] == 'G') {
if (s[1] == 'R') t[0] = t[1] = 'B';
else if (s[1] == 'G') t[0] = t[1] = 'R';
else t[0] = t[1] = 'R';
}
else {
if (s[1] == 'R') t[0] = t[1] = 'G';
else if (s[1] == 'G') t[0] = t[1] = 'R';
else t[0] = t[1] = 'R';
}
for (int i = 2; i < n; i++) {
t[i] = (s[i] == 'R' ? 'G' : 'R');
}
return make_pair(t, min(130, n));
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
int n, l;
void init(int N, int L) {
n = N;
l = L;
}
int bruno(string u) {
if (u[0] == u[1]) return 1;
else return 2;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
38 ms |
1340 KB |
Output is correct |
2 |
Incorrect |
24 ms |
1368 KB |
Wrong Answer [5] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
38 ms |
1340 KB |
Output is correct |
2 |
Incorrect |
24 ms |
1368 KB |
Wrong Answer [5] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
38 ms |
1340 KB |
Output is correct |
2 |
Incorrect |
24 ms |
1368 KB |
Wrong Answer [5] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
38 ms |
1340 KB |
Output is correct |
2 |
Incorrect |
24 ms |
1368 KB |
Wrong Answer [5] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
1288 KB |
Output is correct |
2 |
Incorrect |
27 ms |
1304 KB |
Wrong Answer [5] |
3 |
Halted |
0 ms |
0 KB |
- |