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(){
paint(0,0);
for(int i=2221;i>2121;i--)paint(i,i);
}
void sangsoo(){
int p = 0, q = 0, cnt = 1;
while(!count_row(p))p = (p + cnt++) % 2222;
for(int i=6;i>=0;i--,cnt++)if(count_row((p+(1<<i))%2222))p = (p + (1<<i)) % 2222;
while(!count_col(q))q += cnt++;
for(int i=6;i>=0;i--)if(count_col((q+(1<<i))%2222))q = (q + (1<<i)) % 2222;
report(p, q);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |