답안 #7124

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
7124 2014-07-26T09:54:07 Z ainta 행성 탐사 (GA8_planet) C++
80.7 / 100
720 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 i, x, y, B, E, M, R, a = -1, b = -1, cnt = 0;
	for (i = 0;; i++){
		cnt++;
		if (a == -1 && count_row(i * 80 % 2222)){
			a = i;
		}
		if (b == -1 && count_col(i * 80 % 2222)){
			b = i;
		}
		if (a != -1 && b != -1)break;
	}
	R = a * 80; E = R - 1, B = R - 100;
	if (B < 0)E += 2222, B += 2222;
	while (B <= E){
		M = (B + E) >> 1;
		if (count_row(M % 2222)){ R = M; E = M - 1; }
		else B = M + 1;
	}
	x = R % 2222;
	R = b * 80, E = R - 1, B = R - 100;
	if (B < 0)E += 2222, B += 2222;
	while (B <= E){
		M = (B + E) >> 1;
		if (count_col(M % 2222)){ R = M; E = M - 1; }
		else B = M + 1;
	}
	y = R % 2222;
	report(x, y);
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 56 ms 1756 KB Output is partially correct : max_calls = 143
2 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 140
3 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 140
4 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 138
5 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 139
6 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 145
7 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 143
8 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 144
9 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 143
10 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 140
11 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 138
12 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 138
13 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 145
14 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 145
15 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 143
16 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 142
17 Partially correct 72 ms 1756 KB Output is partially correct : max_calls = 140
18 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 140
19 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 137
20 Partially correct 156 ms 1756 KB Output is partially correct : max_calls = 144
# 결과 실행 시간 메모리 Grader output
1 Partially correct 632 ms 1756 KB Output is partially correct : max_calls = 145
2 Partially correct 628 ms 1756 KB Output is partially correct : max_calls = 145
3 Partially correct 644 ms 1756 KB Output is partially correct : max_calls = 145
4 Partially correct 640 ms 1756 KB Output is partially correct : max_calls = 145
5 Partially correct 644 ms 1756 KB Output is partially correct : max_calls = 144
6 Partially correct 656 ms 1756 KB Output is partially correct : max_calls = 144
7 Partially correct 652 ms 1756 KB Output is partially correct : max_calls = 144
8 Partially correct 668 ms 1756 KB Output is partially correct : max_calls = 144
9 Partially correct 660 ms 1756 KB Output is partially correct : max_calls = 147
10 Partially correct 664 ms 1756 KB Output is partially correct : max_calls = 145
11 Partially correct 196 ms 1756 KB Output is partially correct : max_calls = 141
12 Partially correct 672 ms 1756 KB Output is partially correct : max_calls = 146
13 Partially correct 676 ms 1756 KB Output is partially correct : max_calls = 146
14 Partially correct 680 ms 1756 KB Output is partially correct : max_calls = 146
15 Partially correct 696 ms 1756 KB Output is partially correct : max_calls = 145
16 Partially correct 688 ms 1756 KB Output is partially correct : max_calls = 145
17 Partially correct 700 ms 1756 KB Output is partially correct : max_calls = 145
18 Partially correct 708 ms 1756 KB Output is partially correct : max_calls = 145
19 Partially correct 704 ms 1756 KB Output is partially correct : max_calls = 144
20 Partially correct 708 ms 1756 KB Output is partially correct : max_calls = 144
21 Partially correct 708 ms 1756 KB Output is partially correct : max_calls = 146
22 Partially correct 720 ms 1756 KB Output is partially correct : max_calls = 146
23 Partially correct 712 ms 1756 KB Output is partially correct : max_calls = 145