#include "planet.h"
void ainta() {
for (int i=0; i<34; i++) {
paint(i,0); // step 1.
}
for (int i=0; i<34; i++) {
paint(0,i); // step 1.
}
for (int i=0; i<34 + 66 - 34; i++) {
paint(0,0); // ignore step 2.
}
for (int i=0; i<34 + 66; i++) {
paint(0,0); // ignore step 2.
}
}
void sangsoo() {
for(int i=0; i<34; i++){
count_row(42); // ignore step 1.
}
int posx = 0;
for (int i=0; i<66; i++) {
if(count_row(i * 34 % 2222)) posx = 34 * i % 2222; // step 2.
}
for (int i=0; i<34; i++) {
if(count_row((posx + 2221) % 2222)) posx = (posx + 2221) % 2222;
}
int posy = 0;
for (int i=0; i<66; i++) {
if(count_col(34 * i % 2222)) posy = 34 * i % 2222; // step 2.
}
for (int i=0; i<34; i++) {
if(count_col((posy + 2221) % 2222)) posy = (posy + 2221) % 2222;
}
report(posx,posy);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
134 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
2 |
Partially correct |
135 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
3 |
Partially correct |
135 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
4 |
Partially correct |
132 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
5 |
Partially correct |
136 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
6 |
Partially correct |
129 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
7 |
Partially correct |
137 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
8 |
Partially correct |
137 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
9 |
Partially correct |
137 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
10 |
Partially correct |
138 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
11 |
Partially correct |
139 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
12 |
Partially correct |
140 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
13 |
Partially correct |
136 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
14 |
Partially correct |
136 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
15 |
Partially correct |
139 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
16 |
Partially correct |
141 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
17 |
Partially correct |
142 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
18 |
Partially correct |
142 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
19 |
Partially correct |
142 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
20 |
Partially correct |
227 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
1337 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
2 |
Partially correct |
1341 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
3 |
Partially correct |
1347 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
4 |
Partially correct |
1345 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
5 |
Partially correct |
1347 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
6 |
Partially correct |
1357 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
7 |
Partially correct |
1356 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
8 |
Partially correct |
1362 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
9 |
Partially correct |
1368 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
10 |
Partially correct |
1370 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
11 |
Partially correct |
380 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
12 |
Partially correct |
1380 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
13 |
Partially correct |
1385 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
14 |
Partially correct |
1384 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
15 |
Partially correct |
1393 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
16 |
Partially correct |
1396 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
17 |
Partially correct |
1395 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
18 |
Partially correct |
1403 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
19 |
Partially correct |
1409 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
20 |
Partially correct |
1415 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
21 |
Partially correct |
1418 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
22 |
Partially correct |
1429 ms |
1752 KB |
Output is partially correct : max_calls = 234 |
23 |
Partially correct |
1426 ms |
1752 KB |
Output is partially correct : max_calls = 234 |