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 50
void ainta()
{
int i,j;
for(i=0;i<BUCKET;i++)paint(i,0);
for(j=1;j<BUCKET;j++)paint(0,j);
}
void sangsoo()
{
int x,y;
int i,j,k;
for(i=0;!count_row(i%2222);i+=BUCKET);
i+=2222;
j=i-BUCKET+1;
while(j<i)
{
k=(j+i)/2;
if(count_row(k%2222))i=k;
else j=k+1;
}
x=j;
for(i=0;!count_col(i%2222);i+=BUCKET);
i+=2222;
j=i-BUCKET+1;
while(j<i)
{
k=(i+j)/2;
if(count_col(k%2222))i=k;
else j=k+1;
}
y=j;
report(x%2222,y%2222);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |