# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7139 |
2014-07-26T12:08:32 Z |
ainta |
행성 탐사 (GA8_planet) |
C++ |
|
736 ms |
1756 KB |
#include "planet.h"
#define N 2222
void ainta() {
int i;
for (i = 0; i <= 100; i++){
paint(i, i);
}
}
void sangsoo() {
int i, x, y, B, E, M, R, a, b, cnt = 5, S = 0;
for (i = 0;; i++){
cnt++;
S += cnt;
if (count_row(S % 2222))break;
}
R = S % 2222; E = R - 1, B = R - cnt - 1;
if (B < 0)E += 2222, B += 2222;
while (B <= E){
M = (B + E) >> 1;
if (count_row(M % 2222)){ R = M; E = M - 1; }
else B = M + 1;
cnt++;
}
x = R % 2222;
S = 0;
for (i = 0;; i++){
cnt++;
S += cnt;
if (count_col(S % 2222))break;
}
b = i;
R = S; E = R - 1, B = R - cnt - 1;
if (B < R - 100)B = R - 100;
if (B < 0)E += 2222, B += 2222;
while (B <= E){
M = (B + E) >> 1;
if (count_col(M % 2222)){ R = M; E = M - 1; }
else B = M + 1;
}
y = R % 2222;
report(x, y);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 183 |
2 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
3 |
Partially correct |
60 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
4 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
5 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
6 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
7 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 189 |
8 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 189 |
9 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
10 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
11 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
12 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
13 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
14 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 181 |
15 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
16 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
17 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 189 |
18 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
19 |
Partially correct |
68 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
20 |
Partially correct |
156 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
628 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
2 |
Partially correct |
620 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
3 |
Partially correct |
636 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
4 |
Partially correct |
644 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
5 |
Partially correct |
644 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
6 |
Partially correct |
652 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
7 |
Partially correct |
652 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
8 |
Partially correct |
728 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
9 |
Partially correct |
664 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
10 |
Partially correct |
668 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
11 |
Partially correct |
200 ms |
1756 KB |
Output is partially correct : max_calls = 182 |
12 |
Partially correct |
684 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
13 |
Partially correct |
676 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
14 |
Partially correct |
684 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
15 |
Partially correct |
692 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
16 |
Partially correct |
696 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
17 |
Partially correct |
696 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
18 |
Partially correct |
708 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
19 |
Partially correct |
704 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
20 |
Partially correct |
704 ms |
1756 KB |
Output is partially correct : max_calls = 215 |
21 |
Partially correct |
700 ms |
1756 KB |
Output is partially correct : max_calls = 189 |
22 |
Partially correct |
736 ms |
1756 KB |
Output is partially correct : max_calls = 190 |
23 |
Partially correct |
732 ms |
1756 KB |
Output is partially correct : max_calls = 190 |