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() {
for (int i=1;i<=40;i++) paint(i*55,0);
for (int i=1;i<=40;i++) paint(0,i*55);
}
void sangsoo(){
int x[2]; bool f;
for (int k=0;k<2;k++){
int &i = x[k]; i = 0;
while (1){
int c = ((k == 0) ? count_row(i) : count_col(i));
if (c > 1) break;
if (c == 1) f = 1;
else f = 0;
if (f) i += 55;
else i = i - 1;
if (i < 0) i += 2222;
i %= 2222;
}
}
report(x[0],x[1]);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |