Submission #7170

#TimeUsernameProblemLanguageResultExecution timeMemory
7170gs13068행성 탐사 (GA8_planet)C++98
0 / 100
0 ms1756 KiB
#include "planet.h" #define BUCKET 66 void ainta() { int i,j; for(i=0;i<BUCKET;i++)paint(i,0); for(j=1;j<BUCKET;j++)paint(0,j); } void sangsoo() { int x,y; int i,j,k; for(i=0;i<BUCKET;i++)count_row(i); for(i=0;!(k=count_row(i));i+=BUCKET); if(k==0)j=i; else { for(j=i+1;(k=count_row(j))==1;j++); if(k==0)for(j=i-1;(k=count_row(j))==1;j--); } x=j; for(i=0;i<BUCKET;i++)count_col(i); for(i=0;!(k=count_col(i));i+=BUCKET); if(k==0)j=i; else { for(j=i+1;(k=count_col(j))==1;j++); if(k==0)for(j=i-1;(k=count_col(j))==1;j--); } y=j; report(x%2222,y%2222); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...