# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
66155 | 2018-08-09T22:19:23 Z | thiago4532 | Martian DNA (IOI16_dna) | C++17 | 19 ms | 1456 KB |
#include "dna.h" #include <bits/stdc++.h> using namespace std; string analyse(int n, int t) { string s; while(true){ if(make_test(s+'0')) s += '0'; else if(make_test(s+'1')) s += '1'; else break; } while(s.size() < n){ string s_giovanni, s_davi; s_giovanni += ('0'); s_davi += ('1'); s_giovanni += s; s_davi += s; if(make_test(s_giovanni)) s = s_giovanni; else s = s_davi; } // cout << "RESP: " << n << " " << s.size() << "\n"; return s; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Correct | 2 ms | 472 KB | Output is correct |
3 | Correct | 2 ms | 580 KB | Output is correct |
4 | Correct | 2 ms | 600 KB | Output is correct |
5 | Correct | 2 ms | 696 KB | Output is correct |
6 | Correct | 2 ms | 696 KB | Output is correct |
7 | Correct | 2 ms | 812 KB | Output is correct |
8 | Correct | 3 ms | 832 KB | Output is correct |
9 | Correct | 2 ms | 832 KB | Output is correct |
10 | Correct | 2 ms | 832 KB | Output is correct |
11 | Correct | 3 ms | 832 KB | Output is correct |
12 | Correct | 2 ms | 832 KB | Output is correct |
13 | Correct | 2 ms | 832 KB | Output is correct |
14 | Correct | 2 ms | 832 KB | Output is correct |
15 | Correct | 2 ms | 832 KB | Output is correct |
16 | Correct | 3 ms | 832 KB | Output is correct |
17 | Correct | 2 ms | 832 KB | Output is correct |
18 | Correct | 2 ms | 832 KB | Output is correct |
19 | Correct | 2 ms | 832 KB | Output is correct |
20 | Correct | 3 ms | 920 KB | Output is correct |
21 | Correct | 3 ms | 920 KB | Output is correct |
22 | Correct | 3 ms | 920 KB | Output is correct |
23 | Correct | 2 ms | 920 KB | Output is correct |
24 | Correct | 2 ms | 920 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 920 KB | Output is correct |
2 | Correct | 2 ms | 920 KB | Output is correct |
3 | Correct | 3 ms | 920 KB | Output is correct |
4 | Correct | 2 ms | 920 KB | Output is correct |
5 | Correct | 3 ms | 920 KB | Output is correct |
6 | Correct | 2 ms | 920 KB | Output is correct |
7 | Correct | 3 ms | 920 KB | Output is correct |
8 | Correct | 2 ms | 920 KB | Output is correct |
9 | Correct | 2 ms | 920 KB | Output is correct |
10 | Correct | 2 ms | 920 KB | Output is correct |
11 | Correct | 2 ms | 920 KB | Output is correct |
12 | Correct | 2 ms | 920 KB | Output is correct |
13 | Correct | 2 ms | 920 KB | Output is correct |
14 | Correct | 2 ms | 920 KB | Output is correct |
15 | Correct | 3 ms | 920 KB | Output is correct |
16 | Correct | 3 ms | 920 KB | Output is correct |
17 | Correct | 3 ms | 920 KB | Output is correct |
18 | Correct | 2 ms | 920 KB | Output is correct |
19 | Correct | 3 ms | 1016 KB | Output is correct |
20 | Correct | 2 ms | 1016 KB | Output is correct |
21 | Correct | 2 ms | 1080 KB | Output is correct |
22 | Correct | 3 ms | 1080 KB | Output is correct |
23 | Correct | 2 ms | 1080 KB | Output is correct |
24 | Correct | 2 ms | 1080 KB | Output is correct |
25 | Correct | 3 ms | 1080 KB | Output is correct |
26 | Correct | 3 ms | 1080 KB | Output is correct |
27 | Correct | 2 ms | 1136 KB | Output is correct |
28 | Correct | 2 ms | 1136 KB | Output is correct |
29 | Correct | 2 ms | 1136 KB | Output is correct |
30 | Correct | 3 ms | 1136 KB | Output is correct |
31 | Correct | 3 ms | 1152 KB | Output is correct |
32 | Correct | 4 ms | 1152 KB | Output is correct |
33 | Correct | 3 ms | 1152 KB | Output is correct |
34 | Correct | 2 ms | 1152 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 1152 KB | Output is correct |
2 | Correct | 2 ms | 1152 KB | Output is correct |
3 | Correct | 2 ms | 1152 KB | Output is correct |
4 | Correct | 2 ms | 1152 KB | Output is correct |
5 | Correct | 3 ms | 1172 KB | Output is correct |
6 | Correct | 2 ms | 1172 KB | Output is correct |
7 | Correct | 2 ms | 1172 KB | Output is correct |
8 | Correct | 2 ms | 1172 KB | Output is correct |
9 | Correct | 3 ms | 1172 KB | Output is correct |
10 | Correct | 4 ms | 1172 KB | Output is correct |
11 | Correct | 3 ms | 1172 KB | Output is correct |
12 | Correct | 2 ms | 1172 KB | Output is correct |
13 | Correct | 2 ms | 1172 KB | Output is correct |
14 | Correct | 2 ms | 1172 KB | Output is correct |
15 | Correct | 3 ms | 1172 KB | Output is correct |
16 | Correct | 2 ms | 1172 KB | Output is correct |
17 | Correct | 2 ms | 1172 KB | Output is correct |
18 | Correct | 2 ms | 1172 KB | Output is correct |
19 | Correct | 2 ms | 1172 KB | Output is correct |
20 | Correct | 2 ms | 1172 KB | Output is correct |
21 | Correct | 2 ms | 1172 KB | Output is correct |
22 | Incorrect | 14 ms | 1252 KB | Too many tests |
23 | Incorrect | 17 ms | 1252 KB | Too many tests |
24 | Incorrect | 19 ms | 1260 KB | Too many tests |
25 | Incorrect | 18 ms | 1264 KB | Too many tests |
26 | Incorrect | 18 ms | 1268 KB | Too many tests |
27 | Incorrect | 15 ms | 1272 KB | Too many tests |
28 | Incorrect | 11 ms | 1280 KB | Too many tests |
29 | Correct | 8 ms | 1284 KB | Output is correct |
30 | Incorrect | 18 ms | 1288 KB | Too many tests |
31 | Incorrect | 17 ms | 1292 KB | Too many tests |
32 | Correct | 9 ms | 1296 KB | Output is correct |
33 | Incorrect | 13 ms | 1296 KB | Too many tests |
34 | Incorrect | 13 ms | 1304 KB | Too many tests |
35 | Incorrect | 13 ms | 1436 KB | Too many tests |
36 | Incorrect | 12 ms | 1456 KB | Too many tests |
37 | Incorrect | 12 ms | 1456 KB | Too many tests |
38 | Incorrect | 14 ms | 1456 KB | Too many tests |
39 | Correct | 12 ms | 1456 KB | Output is correct |