# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71522 | 2018-08-25T01:30:44 Z | admin | 행성 탐사 (GA8_planet) | C++17 | 772 ms | 1356 KB |
#include "planet.h" #define N 2222 void ainta() { int i; for(i = 0; i < 100; i++) paint(i, i); } void sangsoo() { int r, c, g, k, t = 0, cnt = 0; for(c = 0, g = 1; ; c = (c + ++g) % N, ++t, ++cnt) { if(count_col(c) != 0) break; } for(k = 6; k >= 0; k--, ++t, ++cnt) { c = (c - (1<<k) + N) % N; if(!count_col(c)) c = (c + (1<<k) + N) % N; } for(r = 0, g = 1; ; r = (r + t + ++g) % N, ++cnt) { if(count_row(r) != 0) break; } for(k = 6; k >= 0; k--, ++cnt) { r = (r - (1<<k) + N) % N; if(!count_row(r)) r = (r + (1<<k) + N) % N; } report(r, c); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 57 ms | 892 KB | Output is partially correct: max_calls = 107 |
2 | Partially correct | 78 ms | 1076 KB | Output is partially correct: max_calls = 107 |
3 | Partially correct | 89 ms | 1076 KB | Output is partially correct: max_calls = 107 |
4 | Partially correct | 61 ms | 1112 KB | Output is partially correct: max_calls = 107 |
5 | Partially correct | 60 ms | 1116 KB | Output is partially correct: max_calls = 107 |
6 | Partially correct | 58 ms | 1116 KB | Output is partially correct: max_calls = 107 |
7 | Partially correct | 63 ms | 1116 KB | Output is partially correct: max_calls = 107 |
8 | Partially correct | 69 ms | 1152 KB | Output is partially correct: max_calls = 107 |
9 | Partially correct | 88 ms | 1152 KB | Output is partially correct: max_calls = 107 |
10 | Partially correct | 63 ms | 1152 KB | Output is partially correct: max_calls = 107 |
11 | Partially correct | 62 ms | 1240 KB | Output is partially correct: max_calls = 107 |
12 | Partially correct | 62 ms | 1240 KB | Output is partially correct: max_calls = 107 |
13 | Partially correct | 61 ms | 1288 KB | Output is partially correct: max_calls = 107 |
14 | Partially correct | 63 ms | 1288 KB | Output is partially correct: max_calls = 107 |
15 | Partially correct | 61 ms | 1288 KB | Output is partially correct: max_calls = 107 |
16 | Partially correct | 62 ms | 1288 KB | Output is partially correct: max_calls = 107 |
17 | Partially correct | 62 ms | 1288 KB | Output is partially correct: max_calls = 107 |
18 | Partially correct | 88 ms | 1288 KB | Output is partially correct: max_calls = 107 |
19 | Partially correct | 81 ms | 1288 KB | Output is partially correct: max_calls = 107 |
20 | Partially correct | 163 ms | 1288 KB | Output is partially correct: max_calls = 107 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 568 ms | 1288 KB | Output is partially correct: max_calls = 107 |
2 | Partially correct | 560 ms | 1288 KB | Output is partially correct: max_calls = 107 |
3 | Partially correct | 566 ms | 1288 KB | Output is partially correct: max_calls = 107 |
4 | Partially correct | 686 ms | 1288 KB | Output is partially correct: max_calls = 107 |
5 | Partially correct | 572 ms | 1288 KB | Output is partially correct: max_calls = 107 |
6 | Partially correct | 572 ms | 1356 KB | Output is partially correct: max_calls = 107 |
7 | Partially correct | 600 ms | 1356 KB | Output is partially correct: max_calls = 107 |
8 | Partially correct | 632 ms | 1356 KB | Output is partially correct: max_calls = 107 |
9 | Partially correct | 636 ms | 1356 KB | Output is partially correct: max_calls = 107 |
10 | Partially correct | 606 ms | 1356 KB | Output is partially correct: max_calls = 107 |
11 | Partially correct | 181 ms | 1356 KB | Output is partially correct: max_calls = 107 |
12 | Partially correct | 684 ms | 1356 KB | Output is partially correct: max_calls = 107 |
13 | Partially correct | 674 ms | 1356 KB | Output is partially correct: max_calls = 107 |
14 | Partially correct | 674 ms | 1356 KB | Output is partially correct: max_calls = 107 |
15 | Partially correct | 772 ms | 1356 KB | Output is partially correct: max_calls = 107 |
16 | Partially correct | 695 ms | 1356 KB | Output is partially correct: max_calls = 107 |
17 | Partially correct | 692 ms | 1356 KB | Output is partially correct: max_calls = 107 |
18 | Partially correct | 715 ms | 1356 KB | Output is partially correct: max_calls = 107 |
19 | Partially correct | 631 ms | 1356 KB | Output is partially correct: max_calls = 107 |
20 | Partially correct | 721 ms | 1356 KB | Output is partially correct: max_calls = 107 |
21 | Partially correct | 667 ms | 1356 KB | Output is partially correct: max_calls = 107 |
22 | Partially correct | 662 ms | 1356 KB | Output is partially correct: max_calls = 107 |
23 | Partially correct | 629 ms | 1356 KB | Output is partially correct: max_calls = 107 |