Submission #71519

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
715192018-08-25 01:24:08admin행성 탐사 (GA8_planet)C++17
Compilation error
0 ms0 KiB
#include "planet.h"
#define N 2222
void ainta() {
int i;
for(i = 0; i < 200; i++) paint(i, i);
}
void sangsoo() {
int r, c, g, k, t = 0, cnt = 0;
for(c = 0, g = 1; ; c = (c + ++g) % N, ++t, ++cnt) {
if(count_col(c) != 0) break;
}
for(k = 6; k >= 0; k--, ++t, ++cnt) {
c = (c - (1<<k) + N) % N;
if(!count_col(c)) c = (c + (1<<k) + N) % N;
}
for(r = 0, g = 1; ; r = (r + t + ++g) % N, ++cnt) {
if(count_row(r) != 0) break;
}
for(k = 6; k >= 0; k--, ++cnt) {
r = (r - (1<<k) + N) % N;
if(!count_row(r)) r = (r + (1<<k) + N) % N;
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

g++-7: error: grader.c: No such file or directory