Submission #7848

#TimeUsernameProblemLanguageResultExecution timeMemory
7848cki86201행성 탐사 (GA8_planet)C++98
96.20 / 100
980 ms1756 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...