This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "planet.h"
#define BUCKET 100
void ainta()
{
int i,j;
for(i=0;i<BUCKET;i++)paint((2222-i)%2222,(2222-i)%2222);
}
void sangsoo()
{
int x,y,z=0;
int i,j,k;
for(x=0;++z&&!count_row(x%2222);x+=z);
i=x+z-1;
for(y=0;++z&&!count_col(y%2222)&&++z;y+=z);
j=y+z-1;
while(x<i)
{
k=(x+i+1)/2;
if(count_row(k%2222))x=k;
else i=k-1;
}
while(y<j)
{
k=(y+j+1)/2;
if(count_col(k%2222))y=k;
else j=k-1;
}
report(x%2222,y%2222);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |