Submission #13870

#TimeUsernameProblemLanguageResultExecution timeMemory
13870gs14004행성 탐사 (GA8_planet)C++14
65 / 100
1543 ms1752 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...