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<34; i++) {
paint(i,0); // step 1.
}
for (int i=0; i<34 + 66; i++) {
paint(0,0); // ignore step 2.
}
for (int i=0; i<34; i++) {
paint(0,i); // step 1.
}
for (int i=0; i<34 + 66; i++) {
paint(0,0); // ignore step 2.
}
}
void sangsoo() {
for(int i=0; i<34; i++){
count_row(42); // ignore step 1.
}
int posx = 0;
for (int i=0; i<66; i++) {
if(count_row(i * 34 % 2222)) posx = 34 * i % 2222; // step 2.
}
for (int i=0; i<34; i++) {
if(count_row((posx + 2221) % 2222)) posx = (posx + 2221) % 2222;
}
int posy = 0;
for(int i=0; i<34; i++){
count_row(42); // ignore step 1.
}
for (int i=0; i<66; i++) {
if(count_col(34 * i % 2222)) posy = 34 * i % 2222; // step 2.
}
for (int i=0; i<34; i++) {
if(count_col((posy + 2221) % 2222)) posy = (posy + 2221) % 2222;
}
report(posx,posy);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |