# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7146 |
2014-07-26T12:21:17 Z |
ainta |
행성 탐사 (GA8_planet) |
C++ |
|
1112 ms |
1756 KB |
#include "planet.h"
#include<algorithm>
#include<stdlib.h>
using namespace std;
#define N 2222
void ainta() {
int i;
for (i = 0; i <= 100; i++){
paint(i, i);
}
}
void sangsoo() {
srand(2);
int i, x, y, B, E, M, R, a, b, cnt = 0, S = 0;
for (i = 0;; i++){
cnt++;
S = (S+cnt) % 2222;
if (count_row(S))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;
for (i = 0;; i++){
cnt++;
S = (S+cnt) % 2222;
if (count_col(S))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 |
100 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
2 |
Partially correct |
100 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
3 |
Partially correct |
100 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
4 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
5 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
6 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
7 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
8 |
Partially correct |
108 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
9 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
10 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
11 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
12 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
13 |
Partially correct |
108 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
14 |
Partially correct |
104 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
15 |
Partially correct |
112 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
16 |
Partially correct |
108 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
17 |
Partially correct |
100 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
18 |
Partially correct |
108 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
19 |
Partially correct |
108 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
20 |
Partially correct |
200 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1004 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
2 |
Partially correct |
1012 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
3 |
Partially correct |
1024 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
4 |
Partially correct |
1016 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
5 |
Partially correct |
1024 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
6 |
Partially correct |
1024 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
7 |
Partially correct |
1040 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
8 |
Partially correct |
1032 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
9 |
Partially correct |
1040 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
10 |
Partially correct |
1048 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
11 |
Partially correct |
296 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
12 |
Partially correct |
1056 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
13 |
Partially correct |
1060 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
14 |
Partially correct |
1064 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
15 |
Partially correct |
1072 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
16 |
Partially correct |
1112 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
17 |
Partially correct |
1084 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
18 |
Partially correct |
1096 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
19 |
Partially correct |
1076 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
20 |
Partially correct |
1080 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
21 |
Partially correct |
1092 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
22 |
Partially correct |
1096 ms |
1756 KB |
Output is partially correct : max_calls = 106 |
23 |
Partially correct |
1096 ms |
1756 KB |
Output is partially correct : max_calls = 106 |