답안 #7122

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
7122 2014-07-26T09:50:10 Z ainta 행성 탐사 (GA8_planet) C++
84.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, b, cnt = 0;
	for (i = 0;; i++){
		cnt++;
		if (count_row(i * 40 % 2222))break;
	}
	a = i;
	R = a * 40; E = R - 1, B = R - a - 1;
	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;
	for (i = 0;; i++){
		cnt++;
		if (count_col(i * 85 % 2222))break;
	}
	b = i;
	R = b * 85; 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 60 ms 1756 KB Output is partially correct : max_calls = 131
2 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 132
3 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 132
4 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 130
5 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 131
6 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 132
7 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 133
8 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 130
9 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 130
10 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 132
11 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 132
12 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 130
13 Partially correct 72 ms 1756 KB Output is partially correct : max_calls = 131
14 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 133
15 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 133
16 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 130
17 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 131
18 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 132
19 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 132
20 Partially correct 156 ms 1756 KB Output is partially correct : max_calls = 130
# 결과 실행 시간 메모리 Grader output
1 Partially correct 624 ms 1756 KB Output is partially correct : max_calls = 133
2 Partially correct 628 ms 1756 KB Output is partially correct : max_calls = 133
3 Partially correct 632 ms 1756 KB Output is partially correct : max_calls = 133
4 Partially correct 616 ms 1756 KB Output is partially correct : max_calls = 133
5 Partially correct 632 ms 1756 KB Output is partially correct : max_calls = 133
6 Partially correct 640 ms 1756 KB Output is partially correct : max_calls = 133
7 Partially correct 644 ms 1756 KB Output is partially correct : max_calls = 133
8 Partially correct 656 ms 1756 KB Output is partially correct : max_calls = 133
9 Partially correct 652 ms 1756 KB Output is partially correct : max_calls = 133
10 Partially correct 664 ms 1756 KB Output is partially correct : max_calls = 133
11 Partially correct 196 ms 1756 KB Output is partially correct : max_calls = 133
12 Partially correct 672 ms 1756 KB Output is partially correct : max_calls = 133
13 Partially correct 672 ms 1756 KB Output is partially correct : max_calls = 133
14 Partially correct 688 ms 1756 KB Output is partially correct : max_calls = 133
15 Partially correct 684 ms 1756 KB Output is partially correct : max_calls = 133
16 Partially correct 684 ms 1756 KB Output is partially correct : max_calls = 133
17 Partially correct 680 ms 1756 KB Output is partially correct : max_calls = 133
18 Partially correct 696 ms 1756 KB Output is partially correct : max_calls = 133
19 Partially correct 704 ms 1756 KB Output is partially correct : max_calls = 133
20 Partially correct 712 ms 1756 KB Output is partially correct : max_calls = 133
21 Partially correct 720 ms 1756 KB Output is partially correct : max_calls = 133
22 Partially correct 708 ms 1756 KB Output is partially correct : max_calls = 133
23 Partially correct 708 ms 1756 KB Output is partially correct : max_calls = 133