# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7110 |
2014-07-26T06:51:18 Z |
ainta |
행성 탐사 (GA8_planet) |
C++ |
|
496 ms |
1756 KB |
#include "planet.h"
#define N 2222
void ainta() {
int i;
for (i = 0; i <= 47; i++){
paint(i, i);
}
}
void sangsoo() {
int i, x, y, B, E, M, R, a, b, cnt = 0;
for (i = 0;; i++){
cnt++;
if (count_row((i * 48) % 2222))break;
}
a = i;
for (i = 0;; i++){
cnt++;
if (count_col((i * 48) % 2222))break;
}
b = i;
while (cnt < 48){
count_row(1);
cnt++;
}
R = a * 48; B = R + 1, E = R + 47;
while (B <= E){
M = (B + E) >> 1;
if (count_row(M % 2222)){R = M; B = M + 1;}
else E = M - 1;
}
x = (R + 2222 - 47)%2222;
R = b * 48; B = R + 1, E = R + 47;
while (B <= E){
M = (B + E) >> 1;
if (count_col(M % 2222)){ R = M; B = M + 1; }
else E = M - 1;
}
y = (R + 2222 - 47) % 2222;
report(x, y);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
36 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
2 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 146 |
3 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 146 |
4 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 148 |
5 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 149 |
6 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 146 |
7 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 148 |
8 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
9 |
Partially correct |
44 ms |
1756 KB |
Output is partially correct : max_calls = 150 |
10 |
Partially correct |
40 ms |
1756 KB |
Output is partially correct : max_calls = 145 |
11 |
Partially correct |
44 ms |
1756 KB |
Output is partially correct : max_calls = 146 |
12 |
Partially correct |
44 ms |
1756 KB |
Output is partially correct : max_calls = 148 |
13 |
Partially correct |
44 ms |
1756 KB |
Output is partially correct : max_calls = 149 |
14 |
Partially correct |
44 ms |
1756 KB |
Output is partially correct : max_calls = 146 |
15 |
Partially correct |
44 ms |
1756 KB |
Output is partially correct : max_calls = 148 |
16 |
Partially correct |
44 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
17 |
Partially correct |
48 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
18 |
Partially correct |
48 ms |
1756 KB |
Output is partially correct : max_calls = 146 |
19 |
Partially correct |
48 ms |
1756 KB |
Output is partially correct : max_calls = 146 |
20 |
Partially correct |
136 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
404 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
2 |
Partially correct |
416 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
3 |
Partially correct |
412 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
4 |
Partially correct |
420 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
5 |
Partially correct |
412 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
6 |
Partially correct |
428 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
7 |
Partially correct |
432 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
8 |
Partially correct |
428 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
9 |
Partially correct |
440 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
10 |
Partially correct |
444 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
11 |
Partially correct |
144 ms |
1756 KB |
Output is partially correct : max_calls = 149 |
12 |
Partially correct |
452 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
13 |
Partially correct |
460 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
14 |
Partially correct |
460 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
15 |
Partially correct |
464 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
16 |
Partially correct |
460 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
17 |
Partially correct |
472 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
18 |
Partially correct |
480 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
19 |
Partially correct |
484 ms |
1756 KB |
Output is partially correct : max_calls = 152 |
20 |
Partially correct |
492 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
21 |
Partially correct |
492 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
22 |
Partially correct |
496 ms |
1756 KB |
Output is partially correct : max_calls = 151 |
23 |
Partially correct |
492 ms |
1756 KB |
Output is partially correct : max_calls = 151 |