# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
775186 | 2023-07-06T08:36:19 Z | anha3k25cvp | Martian DNA (IOI16_dna) | C++14 | 1000 ms | 384 KB |
#include <bits/stdc++.h> #include "dna.h" using namespace std; string analyse(int n, int t) { int type = 0; string ans; while (n) { type ^= 1; string S = ans; S += '0' + type; int add_right = make_test(S); if (add_right) { int lo = 2; while (1) { S = ans; for (int i = 1; i <= lo; i ++) S += '0' + type; int val = make_test(S); if (val) continue; lo --; break; } n -= lo; for (int i = 1; i <= lo; i ++) ans += '0' + type; continue; } int lo = 1; while (1) { S = ""; for (int i = 1; i <= lo; i ++) S += '0' + type; S += ans; int val = make_test(S); if (val) continue; lo --; break; } n -= lo; for (int i = 1; i <= lo; i ++) ans = char('0' + type) + ans; } return ans; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Execution timed out | 1084 ms | 212 KB | Time limit exceeded |
4 | Execution timed out | 1081 ms | 212 KB | Time limit exceeded |
5 | Correct | 1 ms | 212 KB | Output is correct |
6 | Execution timed out | 1082 ms | 212 KB | Time limit exceeded |
7 | Execution timed out | 1083 ms | 212 KB | Time limit exceeded |
8 | Execution timed out | 1061 ms | 212 KB | Time limit exceeded |
9 | Execution timed out | 1091 ms | 212 KB | Time limit exceeded |
10 | Correct | 0 ms | 212 KB | Output is correct |
11 | Execution timed out | 1072 ms | 212 KB | Time limit exceeded |
12 | Execution timed out | 1068 ms | 212 KB | Time limit exceeded |
13 | Correct | 0 ms | 212 KB | Output is correct |
14 | Execution timed out | 1084 ms | 212 KB | Time limit exceeded |
15 | Execution timed out | 1076 ms | 212 KB | Time limit exceeded |
16 | Execution timed out | 1072 ms | 212 KB | Time limit exceeded |
17 | Execution timed out | 1056 ms | 212 KB | Time limit exceeded |
18 | Execution timed out | 1084 ms | 212 KB | Time limit exceeded |
19 | Execution timed out | 1070 ms | 212 KB | Time limit exceeded |
20 | Execution timed out | 1060 ms | 212 KB | Time limit exceeded |
21 | Execution timed out | 1076 ms | 212 KB | Time limit exceeded |
22 | Execution timed out | 1041 ms | 336 KB | Time limit exceeded |
23 | Execution timed out | 1070 ms | 212 KB | Time limit exceeded |
24 | Execution timed out | 1088 ms | 212 KB | Time limit exceeded |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 212 KB | Output is correct |
2 | Correct | 1 ms | 212 KB | Output is correct |
3 | Execution timed out | 1072 ms | 212 KB | Time limit exceeded |
4 | Execution timed out | 1083 ms | 212 KB | Time limit exceeded |
5 | Correct | 0 ms | 212 KB | Output is correct |
6 | Execution timed out | 1080 ms | 212 KB | Time limit exceeded |
7 | Execution timed out | 1074 ms | 212 KB | Time limit exceeded |
8 | Execution timed out | 1077 ms | 212 KB | Time limit exceeded |
9 | Execution timed out | 1041 ms | 212 KB | Time limit exceeded |
10 | Execution timed out | 1068 ms | 212 KB | Time limit exceeded |
11 | Execution timed out | 1083 ms | 212 KB | Time limit exceeded |
12 | Execution timed out | 1087 ms | 212 KB | Time limit exceeded |
13 | Execution timed out | 1093 ms | 212 KB | Time limit exceeded |
14 | Execution timed out | 1083 ms | 212 KB | Time limit exceeded |
15 | Execution timed out | 1082 ms | 212 KB | Time limit exceeded |
16 | Execution timed out | 1093 ms | 212 KB | Time limit exceeded |
17 | Execution timed out | 1084 ms | 212 KB | Time limit exceeded |
18 | Execution timed out | 1082 ms | 212 KB | Time limit exceeded |
19 | Execution timed out | 1072 ms | 212 KB | Time limit exceeded |
20 | Execution timed out | 1058 ms | 212 KB | Time limit exceeded |
21 | Execution timed out | 1088 ms | 212 KB | Time limit exceeded |
22 | Execution timed out | 1079 ms | 212 KB | Time limit exceeded |
23 | Correct | 1 ms | 212 KB | Output is correct |
24 | Execution timed out | 1077 ms | 212 KB | Time limit exceeded |
25 | Execution timed out | 1077 ms | 212 KB | Time limit exceeded |
26 | Execution timed out | 1083 ms | 212 KB | Time limit exceeded |
27 | Execution timed out | 1081 ms | 212 KB | Time limit exceeded |
28 | Execution timed out | 1082 ms | 212 KB | Time limit exceeded |
29 | Execution timed out | 1085 ms | 212 KB | Time limit exceeded |
30 | Execution timed out | 1080 ms | 212 KB | Time limit exceeded |
31 | Execution timed out | 1081 ms | 212 KB | Time limit exceeded |
32 | Execution timed out | 1081 ms | 212 KB | Time limit exceeded |
33 | Execution timed out | 1085 ms | 212 KB | Time limit exceeded |
34 | Execution timed out | 1074 ms | 212 KB | Time limit exceeded |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Execution timed out | 1080 ms | 212 KB | Time limit exceeded |
4 | Execution timed out | 1070 ms | 216 KB | Time limit exceeded |
5 | Correct | 0 ms | 212 KB | Output is correct |
6 | Execution timed out | 1082 ms | 212 KB | Time limit exceeded |
7 | Execution timed out | 1089 ms | 212 KB | Time limit exceeded |
8 | Execution timed out | 1093 ms | 212 KB | Time limit exceeded |
9 | Execution timed out | 1069 ms | 212 KB | Time limit exceeded |
10 | Execution timed out | 1090 ms | 212 KB | Time limit exceeded |
11 | Execution timed out | 1088 ms | 212 KB | Time limit exceeded |
12 | Execution timed out | 1082 ms | 212 KB | Time limit exceeded |
13 | Execution timed out | 1074 ms | 212 KB | Time limit exceeded |
14 | Execution timed out | 1080 ms | 212 KB | Time limit exceeded |
15 | Execution timed out | 1086 ms | 212 KB | Time limit exceeded |
16 | Execution timed out | 1089 ms | 212 KB | Time limit exceeded |
17 | Execution timed out | 1075 ms | 212 KB | Time limit exceeded |
18 | Execution timed out | 1076 ms | 212 KB | Time limit exceeded |
19 | Execution timed out | 1080 ms | 212 KB | Time limit exceeded |
20 | Execution timed out | 1092 ms | 212 KB | Time limit exceeded |
21 | Execution timed out | 1079 ms | 212 KB | Time limit exceeded |
22 | Execution timed out | 1058 ms | 212 KB | Time limit exceeded |
23 | Execution timed out | 1089 ms | 212 KB | Time limit exceeded |
24 | Execution timed out | 1083 ms | 212 KB | Time limit exceeded |
25 | Execution timed out | 1084 ms | 212 KB | Time limit exceeded |
26 | Execution timed out | 1093 ms | 212 KB | Time limit exceeded |
27 | Execution timed out | 1090 ms | 348 KB | Time limit exceeded |
28 | Incorrect | 10 ms | 384 KB | Too many tests |
29 | Execution timed out | 1092 ms | 212 KB | Time limit exceeded |
30 | Execution timed out | 1041 ms | 212 KB | Time limit exceeded |
31 | Execution timed out | 1078 ms | 212 KB | Time limit exceeded |
32 | Execution timed out | 1088 ms | 212 KB | Time limit exceeded |
33 | Execution timed out | 1077 ms | 212 KB | Time limit exceeded |
34 | Execution timed out | 1069 ms | 212 KB | Time limit exceeded |
35 | Execution timed out | 1063 ms | 212 KB | Time limit exceeded |
36 | Execution timed out | 1079 ms | 212 KB | Time limit exceeded |
37 | Execution timed out | 1090 ms | 212 KB | Time limit exceeded |
38 | Execution timed out | 1077 ms | 212 KB | Time limit exceeded |
39 | Execution timed out | 1083 ms | 212 KB | Time limit exceeded |