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"
void ainta() {
int i,j;
for(i=1;i<=2210;i+=47){
for(j=2211-i;j<=2210;j+=47){
paint(i,j);
}
}
}
void sangsoo(){
int i=-1,j=-1;
int gx,gy;
for(i=1;i<=2210;i+=47){
for(j=2211-i;j<=2210;j+=47){
count_row(i);
}
}
i=-1,j=-1;
do{i++;gy=count_row(i);}while(gy==0);
i--;
i-=47*(gy-1);
i+=2222;
i%=2222;
do{j++;gx=count_col(j);}while(gx==0);
j--;
j-=47*(gx-1);
j+=2222;
j%=2222;
report(i,j);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |