제출 #7177

#제출 시각아이디문제언어결과실행 시간메모리
7177gs13068행성 탐사 (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,z=0; int i,j,k; for(i=0;i<BUCKET;i++)count_row(0); for(i=0;!(k=count_row(i%2222));i+=BUCKET)z++; if(k>1)j=i; else { for(j=i+1;(k=count_row(j%2222))==1;j++)z++; if(k==0)for(j=i+2221;(k=count_row(j%2222))==1;j+=2221)z++; } x=j; while(z++<BUCKET)count_col(0); for(i=0;!(k=count_col(i%2222));i+=BUCKET); if(k>1)j=i; else { for(j=i+1;(k=count_col(j%2222))==1;j++); if(k==0)for(j=i+2221;(k=count_col(j%2222))==1;j+=2221); } y=j; report(x,y); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...