이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |