# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7117 |
2014-07-26T08:59:55 Z |
tncks0121 |
행성 탐사 (GA8_planet) |
C++ |
|
0 ms |
1756 KB |
#include "planet.h"
#define N 2222
void ainta() {
int i;
for(i = 0; i < 100; 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;
}
if(r <= 40 && c <= 40) report(r, c);
else
report((N-r)%N, (N-c)%N);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1756 KB |
Output isn't correct - 답이 틀려서 프로그램을 종료합니다. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |