Submission #7136

# Submission time Handle Problem Language Result Execution time Memory
7136 2014-07-26T12:05:38 Z ainta 행성 탐사 (GA8_planet) C++
66.3 / 100
728 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, S = 0;
	for (i = 0;; i++){
		S += cnt*3/2;
		if (count_row(S % 2222))break;
		cnt++;
	}
	R = S % 2222; E = R - 1, B = R - cnt - 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;
		cnt++;
	}
	x = R % 2222;
	S = 0;
	for (i = 0;; i++){
		S += cnt*3/2;
		if (count_col(S % 2222))break;
		cnt++;
	}
	b = i;
	R = S; E = R - 1, B = R - cnt - 1;
	if (B < R - 100)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);
}
# Verdict Execution time Memory Grader output
1 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 247
2 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 247
3 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 247
4 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
5 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 248
6 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 248
7 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
8 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
9 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
10 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
11 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
12 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 247
13 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 247
14 Partially correct 72 ms 1756 KB Output is partially correct : max_calls = 248
15 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
16 Partially correct 76 ms 1756 KB Output is partially correct : max_calls = 247
17 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 247
18 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 248
19 Partially correct 72 ms 1756 KB Output is partially correct : max_calls = 247
20 Partially correct 156 ms 1756 KB Output is partially correct : max_calls = 247
# Verdict Execution time Memory Grader output
1 Partially correct 640 ms 1756 KB Output is partially correct : max_calls = 248
2 Partially correct 652 ms 1756 KB Output is partially correct : max_calls = 248
3 Partially correct 664 ms 1756 KB Output is partially correct : max_calls = 248
4 Partially correct 656 ms 1756 KB Output is partially correct : max_calls = 248
5 Partially correct 652 ms 1756 KB Output is partially correct : max_calls = 248
6 Partially correct 660 ms 1756 KB Output is partially correct : max_calls = 248
7 Partially correct 664 ms 1756 KB Output is partially correct : max_calls = 248
8 Partially correct 668 ms 1756 KB Output is partially correct : max_calls = 248
9 Partially correct 668 ms 1756 KB Output is partially correct : max_calls = 248
10 Partially correct 672 ms 1756 KB Output is partially correct : max_calls = 248
11 Partially correct 204 ms 1756 KB Output is partially correct : max_calls = 247
12 Partially correct 696 ms 1756 KB Output is partially correct : max_calls = 248
13 Partially correct 716 ms 1756 KB Output is partially correct : max_calls = 248
14 Partially correct 712 ms 1756 KB Output is partially correct : max_calls = 248
15 Partially correct 716 ms 1756 KB Output is partially correct : max_calls = 248
16 Partially correct 712 ms 1756 KB Output is partially correct : max_calls = 248
17 Partially correct 712 ms 1756 KB Output is partially correct : max_calls = 248
18 Partially correct 720 ms 1756 KB Output is partially correct : max_calls = 248
19 Partially correct 708 ms 1756 KB Output is partially correct : max_calls = 248
20 Partially correct 720 ms 1756 KB Output is partially correct : max_calls = 248
21 Partially correct 728 ms 1756 KB Output is partially correct : max_calls = 248
22 Partially correct 728 ms 1756 KB Output is partially correct : max_calls = 248
23 Partially correct 728 ms 1756 KB Output is partially correct : max_calls = 248