# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
71544 |
2018-08-25T05:38:01 Z |
윤교준(#2220) |
행성 탐사 (GA8_planet) |
C++11 |
|
804 ms |
1388 KB |
#include "planet.h"
#include <bits/stdc++.h>
using namespace std;
inline int f(int i) {
if(i < 0) return 2222+i;
if(2222 <= i) return i-2222;
return i;
}
void ainta() {
for(int i = 0; i < 74; i++) paint(f(-i), f(-i));
for(int i = 0; i < 33; i++) paint(f(-i-74), f(-i-74));
}
void sangsoo() {
int x = -1, y = -1;
{
int i = 0;
for(int t;; i++) {
t = count_row(f(i*(i+1)/2));
if(t) break;
}
int s = i*(i+1)/2, e = s+i;
for(int m; s < e;) {
m = (s+e+1) >> 1; i++;
if(count_row(f(m))) s = m;
else e = m-1;
}
x = s;
for(; i+2 <= 74; i++) count_row(0);
}
{
int i = 0, idx = 0;
for(int t;; i++) {
t = count_col(f(idx));
if(t) break;
idx += 75+i;
}
int s = idx, e = idx+74+i;
for(int m; s < e;) {
m = (s+e+1) >> 1;
if(count_col(f(m))) s = m;
else e = m-1;
}
y = s;
}
report(x, y);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
80 ms |
888 KB |
Output is partially correct: max_calls = 107 |
2 |
Partially correct |
67 ms |
1124 KB |
Output is partially correct: max_calls = 107 |
3 |
Partially correct |
88 ms |
1124 KB |
Output is partially correct: max_calls = 107 |
4 |
Partially correct |
68 ms |
1264 KB |
Output is partially correct: max_calls = 107 |
5 |
Partially correct |
67 ms |
1264 KB |
Output is partially correct: max_calls = 107 |
6 |
Partially correct |
67 ms |
1264 KB |
Output is partially correct: max_calls = 107 |
7 |
Partially correct |
61 ms |
1296 KB |
Output is partially correct: max_calls = 107 |
8 |
Partially correct |
64 ms |
1296 KB |
Output is partially correct: max_calls = 107 |
9 |
Partially correct |
61 ms |
1296 KB |
Output is partially correct: max_calls = 107 |
10 |
Partially correct |
73 ms |
1296 KB |
Output is partially correct: max_calls = 107 |
11 |
Partially correct |
76 ms |
1296 KB |
Output is partially correct: max_calls = 107 |
12 |
Partially correct |
64 ms |
1296 KB |
Output is partially correct: max_calls = 107 |
13 |
Partially correct |
68 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
14 |
Partially correct |
75 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
15 |
Partially correct |
77 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
16 |
Partially correct |
83 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
17 |
Partially correct |
79 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
18 |
Partially correct |
70 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
19 |
Partially correct |
66 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
20 |
Partially correct |
162 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
669 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
2 |
Partially correct |
624 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
3 |
Partially correct |
666 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
4 |
Partially correct |
586 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
5 |
Partially correct |
606 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
6 |
Partially correct |
651 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
7 |
Partially correct |
628 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
8 |
Partially correct |
734 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
9 |
Partially correct |
584 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
10 |
Partially correct |
704 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
11 |
Partially correct |
218 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
12 |
Partially correct |
740 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
13 |
Partially correct |
763 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
14 |
Partially correct |
727 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
15 |
Partially correct |
680 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
16 |
Partially correct |
727 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
17 |
Partially correct |
722 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
18 |
Partially correct |
696 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
19 |
Partially correct |
742 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
20 |
Partially correct |
631 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
21 |
Partially correct |
647 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
22 |
Partially correct |
804 ms |
1388 KB |
Output is partially correct: max_calls = 107 |
23 |
Partially correct |
744 ms |
1388 KB |
Output is partially correct: max_calls = 107 |