#include "planet.h"
int calls;
void my_paint(int r,int c)
{
paint((r%2222+2222)%2222,(c%2222+2222)%2222);
}
int my_row(int r)
{
calls++;
return count_row((r%2222+2222)%2222);
}
int my_col(int c)
{
calls++;
return count_col((c%2222+2222)%2222);
}
void wait()
{
calls++;
count_row(0);
}
void my_report(int r,int c)
{
report((r%2222+2222)%2222,(c%2222+2222)%2222);
}
void ainta()
{
int i;
for(i=0;i<39;i++)my_paint(-i,0);
for(i=0;i<39;i++)my_paint(0,-i);
}
void sangsoo()
{
calls = 0;
int x,y;
while(calls<39)wait();
for(x=0;x<2222;x+=39)if(my_row(x))break;
while(my_row(x+1))x++;
while(calls<78)wait();
for(y=0;y<2222;y+=39)if(my_col(y))break;
while(my_col(y+1))y++;
my_report(x,y);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
80 ms |
1756 KB |
Output is partially correct : max_calls = 221 |
2 |
Partially correct |
80 ms |
1756 KB |
Output is partially correct : max_calls = 224 |
3 |
Partially correct |
80 ms |
1756 KB |
Output is partially correct : max_calls = 224 |
4 |
Partially correct |
84 ms |
1756 KB |
Output is partially correct : max_calls = 229 |
5 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
6 |
Partially correct |
84 ms |
1756 KB |
Output is partially correct : max_calls = 223 |
7 |
Partially correct |
80 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
8 |
Partially correct |
84 ms |
1756 KB |
Output is partially correct : max_calls = 226 |
9 |
Partially correct |
84 ms |
1756 KB |
Output is partially correct : max_calls = 224 |
10 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 225 |
11 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 225 |
12 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 225 |
13 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 221 |
14 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 224 |
15 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 229 |
16 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
17 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 223 |
18 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 226 |
19 |
Partially correct |
88 ms |
1756 KB |
Output is partially correct : max_calls = 226 |
20 |
Partially correct |
176 ms |
1756 KB |
Output is partially correct : max_calls = 225 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
828 ms |
1756 KB |
Output is partially correct : max_calls = 229 |
2 |
Partially correct |
832 ms |
1756 KB |
Output is partially correct : max_calls = 229 |
3 |
Partially correct |
836 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
4 |
Partially correct |
832 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
5 |
Partially correct |
844 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
6 |
Partially correct |
852 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
7 |
Partially correct |
856 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
8 |
Partially correct |
920 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
9 |
Partially correct |
864 ms |
1756 KB |
Output is partially correct : max_calls = 229 |
10 |
Partially correct |
864 ms |
1756 KB |
Output is partially correct : max_calls = 229 |
11 |
Partially correct |
252 ms |
1756 KB |
Output is partially correct : max_calls = 225 |
12 |
Partially correct |
872 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
13 |
Partially correct |
884 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
14 |
Partially correct |
880 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
15 |
Partially correct |
892 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
16 |
Partially correct |
888 ms |
1756 KB |
Output is partially correct : max_calls = 225 |
17 |
Partially correct |
892 ms |
1756 KB |
Output is partially correct : max_calls = 226 |
18 |
Partially correct |
896 ms |
1756 KB |
Output is partially correct : max_calls = 226 |
19 |
Partially correct |
908 ms |
1756 KB |
Output is partially correct : max_calls = 227 |
20 |
Partially correct |
908 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
21 |
Partially correct |
912 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
22 |
Partially correct |
928 ms |
1756 KB |
Output is partially correct : max_calls = 228 |
23 |
Partially correct |
912 ms |
1756 KB |
Output is partially correct : max_calls = 228 |