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=0; i<101; i++){
paint(22 * i,0);
}
for (int i=0; i<22; i++) {
paint(0,0);
}
for (int i=0; i<101; i++) {
paint(1,0);
}
for(int i=0; i<101; i++){
paint(0,22 * i);
}
for (int i=0; i<22 + 101; i++) {
paint(0,0);
}
}
void sangsoo() {
int resx = -1;
for(int i=0; i<101; i++){
count_row(42);
}
int p = 0;
for (int i=0; i<22; i++) {
if(count_row(i)) p = i;
}
for (int i=0; i<101; i++) {
int t = count_row((22 * i + p + 1) % 2222);
if(t > 0){
resx = 22 * i + p;
}
}
for(int i=0; i<101; i++){
count_row(42);
}
for (int i=0; i<22; i++) {
if(count_col(i)) p = i;
}
for (int i=0; i<101; i++) {
int t = count_col(22 * i + p);
if(t > 1){
report(resx,22 * i + p);
return;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |