# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
71612 |
2018-08-25T08:36:18 Z |
윤교준(#2220) |
행성 탐사 (GA8_planet) |
C++11 |
|
1248 ms |
1292 KB |
#include "planet.h"
#include <bits/stdc++.h>
using namespace std;
int rd(int s, int e) { return rand() % (e-s+1) + s; }
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 < 104; i++) paint(f(-i), f(-i));
}
void sangsoo() {
srand(time(0));
int dx = rd(0, 2221), dy = rd(0, 2221);
int x = -1, y = -1, ll = -1;
int sx, ex, sy, ey;
{
int i = 0;
for(int t;; i++) {
t = count_row(f(i*(i+1)/2 + dx));
if(t) break;
}
int s = i*(i+1)/2 + dx, e = s+i;
sx = s; ex = e;
ll = i+1;
}
{
int i = 0, idx = dy;
for(int t;; i++) {
t = count_col(f(idx));
if(t) break;
idx += ll+i+1;
}
int s = idx, e = idx+ll+i;
sy = s; ey = e;
}
{
int s = sx, e = ex;
for(int m; s < e;) {
m = (s+e+1) >> 1;
if(count_row(f(m))) s = m;
else e = m-1;
}
x = s;
}
{
int s = sy, e = ey;
for(int m; s < e;) {
m = (s+e+1) >> 1;
if(count_col(f(m))) s = m;
else e = m-1;
}
y = s;
}
report(f(x), f(y));
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
133 ms |
1016 KB |
Output is partially correct: max_calls = 108 |
2 |
Partially correct |
109 ms |
1016 KB |
Output is partially correct: max_calls = 108 |
3 |
Partially correct |
122 ms |
1016 KB |
Output is partially correct: max_calls = 108 |
4 |
Partially correct |
142 ms |
1076 KB |
Output is partially correct: max_calls = 108 |
5 |
Partially correct |
104 ms |
1076 KB |
Output is partially correct: max_calls = 108 |
6 |
Partially correct |
127 ms |
1076 KB |
Output is partially correct: max_calls = 108 |
7 |
Partially correct |
108 ms |
1076 KB |
Output is partially correct: max_calls = 108 |
8 |
Partially correct |
116 ms |
1204 KB |
Output is partially correct: max_calls = 108 |
9 |
Partially correct |
104 ms |
1204 KB |
Output is partially correct: max_calls = 108 |
10 |
Partially correct |
127 ms |
1204 KB |
Output is partially correct: max_calls = 108 |
11 |
Partially correct |
122 ms |
1204 KB |
Output is partially correct: max_calls = 108 |
12 |
Partially correct |
110 ms |
1204 KB |
Output is partially correct: max_calls = 108 |
13 |
Partially correct |
119 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
14 |
Partially correct |
107 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
15 |
Partially correct |
140 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
16 |
Partially correct |
123 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
17 |
Partially correct |
107 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
18 |
Partially correct |
114 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
19 |
Partially correct |
120 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
20 |
Partially correct |
216 ms |
1292 KB |
Output is partially correct: max_calls = 107 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
1018 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
2 |
Partially correct |
1163 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
3 |
Partially correct |
1113 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
4 |
Partially correct |
1113 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
5 |
Partially correct |
1058 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
6 |
Partially correct |
1075 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
7 |
Partially correct |
1031 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
8 |
Partially correct |
1206 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
9 |
Partially correct |
1073 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
10 |
Partially correct |
1061 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
11 |
Partially correct |
291 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
12 |
Partially correct |
1248 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
13 |
Partially correct |
1186 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
14 |
Partially correct |
1219 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
15 |
Partially correct |
1088 ms |
1292 KB |
Output is partially correct: max_calls = 108 |
16 |
Runtime error |
75 ms |
1292 KB |
Execution failed because the return code was nonzero |
17 |
Halted |
0 ms |
0 KB |
- |