#include "planet.h"
void ainta() {
for(int i=0; i<101; i++){
paint(22 * i,0);
}
for (int i=0; i<22; i++) {
paint(0,0);
}
for (int i=0; i<101; i++) {
paint(1,0);
}
for(int i=0; i<101; i++){
paint(0,22 * i);
}
for (int i=0; i<22 + 101; i++) {
paint(0,0);
}
}
void sangsoo() {
int resx = -1;
for(int i=0; i<101; i++){
count_row(42);
}
int p = 0;
for (int i=0; i<22; i++) {
if(count_row(i)) p = i;
}
for (int i=0; i<101; i++) {
int t = count_row((22 * i + p + 1) % 2222);
if(t > 0){
resx = 22 * i + p;
}
}
for(int i=0; i<101; i++){
count_row(42);
}
for (int i=0; i<22; i++) {
if(count_col(i)) p = i;
}
for (int i=0; i<101; i++) {
int t = count_col(22 * i + p);
if(t > 1){
report(resx,22 * i + p);
return;
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
212 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
2 |
Partially correct |
212 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
3 |
Partially correct |
213 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
4 |
Partially correct |
212 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
5 |
Partially correct |
213 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
6 |
Partially correct |
212 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
7 |
Partially correct |
216 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
8 |
Partially correct |
213 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
9 |
Partially correct |
210 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
10 |
Partially correct |
211 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
11 |
Partially correct |
215 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
12 |
Partially correct |
216 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
13 |
Partially correct |
217 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
14 |
Partially correct |
218 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
15 |
Partially correct |
219 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
16 |
Partially correct |
215 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
17 |
Partially correct |
217 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
18 |
Partially correct |
210 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
19 |
Partially correct |
217 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
20 |
Partially correct |
305 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
2110 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
2 |
Partially correct |
2099 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
3 |
Partially correct |
2103 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
4 |
Partially correct |
2120 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
5 |
Partially correct |
2138 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
6 |
Partially correct |
2130 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
7 |
Partially correct |
2142 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
8 |
Partially correct |
2139 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
9 |
Partially correct |
2137 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
10 |
Partially correct |
2139 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
11 |
Partially correct |
574 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
12 |
Partially correct |
2146 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
13 |
Partially correct |
2149 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
14 |
Partially correct |
2155 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
15 |
Partially correct |
2166 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
16 |
Partially correct |
2165 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
17 |
Partially correct |
2169 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
18 |
Partially correct |
2192 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
19 |
Partially correct |
2184 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
20 |
Partially correct |
2181 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
21 |
Partially correct |
2193 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
22 |
Partially correct |
2211 ms |
1752 KB |
Output is partially correct : max_calls = 448 |
23 |
Partially correct |
2193 ms |
1752 KB |
Output is partially correct : max_calls = 448 |