# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7553 |
2014-08-11T06:48:00 Z |
gs13068 |
행성 탐사 (GA8_planet) |
C++ |
|
3000 ms |
1756 KB |
#include "planet.h"
int calls = 0;
int my_row(int r)
{
calls++;
return count_row(r);
}
int my_col(int c)
{
calls++;
return count_col(c);
}
void wait()
{
calls++;
count_row(0);
}
void ainta()
{
int i;
for(i=0;i<1111;i++)paint((2222-i)%2222,0);
for(i=0;i<1111;i++)paint(0,(2222-i)%2222);
}
void sangsoo()
{
calls = 0;
int x,y;
for(x=0;x<1111;x++)if(my_row(x))break;
while(calls<1111)wait();
for(y=0;y<1111;y++)if(my_col(y))break;
x=x*2-1;
y=y*2-1;
if(x<0)x=0;
if(y<0)y=0;
if(my_row(x)==1)x++;
if(my_col(y)==1)y++;
report(x,y);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1264 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
2 |
Partially correct |
1272 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
3 |
Partially correct |
1276 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
4 |
Partially correct |
1248 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
5 |
Partially correct |
1256 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
6 |
Partially correct |
1240 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
7 |
Partially correct |
1248 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
8 |
Partially correct |
1268 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
9 |
Partially correct |
1248 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
10 |
Partially correct |
1260 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
11 |
Partially correct |
1268 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
12 |
Partially correct |
1272 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
13 |
Partially correct |
1264 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
14 |
Partially correct |
1244 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
15 |
Partially correct |
1264 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
16 |
Partially correct |
1260 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
17 |
Partially correct |
1264 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
18 |
Partially correct |
1264 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
19 |
Partially correct |
1256 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
20 |
Partially correct |
1464 ms |
1756 KB |
Output is partially correct : max_calls = 2224 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
3000 ms |
1752 KB |
Program timed out |
2 |
Halted |
0 ms |
0 KB |
- |