# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
502441 | 2022-01-06T02:43:49 Z | chenwz | Mobile (BOI12_mobile) | C++11 | 372 ms | 24604 KB |
// BalticOI2012 - Mobile #include <bits/stdc++.h> using namespace std; using LL = long long; #define _for(i, a, b) for (int i = (a); i < (int)(b); ++i) int main() { int N, L; scanf("%d%d", &N, &L); vector<int> X(N), Y(N); _for(i, 0, N) scanf("%d%d", &X[i], &Y[i]); double l = 1, r = 1.5e9; while (r - l > 1e-3) { double m = (l + r) / 2, right = 0; _for(i, 0, N) { double y = Y[i], dx = sqrt(m * m - y * y), a = X[i] - dx, b = X[i] + dx; if (a <= right) right = max(right, b); if (right >= L) break; } (right >= L ? r : l) = m; } printf("%.4lf\n", l); return 0; } // 499716 Mobile (BOI12_mobile) C++11 100 / 100 405ms 27384KB
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 1 ms | 292 KB | Output is correct |
3 | Correct | 0 ms | 292 KB | Output is correct |
4 | Correct | 0 ms | 204 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Output is correct |
2 | Correct | 0 ms | 204 KB | Output is correct |
3 | Correct | 0 ms | 204 KB | Output is correct |
4 | Correct | 1 ms | 272 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 332 KB | Output is correct |
2 | Correct | 1 ms | 300 KB | Output is correct |
3 | Correct | 2 ms | 204 KB | Output is correct |
4 | Correct | 1 ms | 348 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 332 KB | Output is correct |
2 | Correct | 2 ms | 304 KB | Output is correct |
3 | Correct | 1 ms | 332 KB | Output is correct |
4 | Correct | 2 ms | 332 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 300 KB | Output is correct |
2 | Correct | 2 ms | 284 KB | Output is correct |
3 | Correct | 2 ms | 360 KB | Output is correct |
4 | Correct | 3 ms | 332 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 332 KB | Output is correct |
2 | Correct | 2 ms | 304 KB | Output is correct |
3 | Correct | 2 ms | 368 KB | Output is correct |
4 | Correct | 2 ms | 332 KB | Output is correct |
5 | Correct | 2 ms | 332 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 25 ms | 1632 KB | Output is correct |
2 | Correct | 17 ms | 1888 KB | Output is correct |
3 | Correct | 17 ms | 1320 KB | Output is correct |
4 | Correct | 27 ms | 2004 KB | Output is correct |
5 | Correct | 11 ms | 1064 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 20 ms | 1520 KB | Output is correct |
2 | Correct | 20 ms | 1636 KB | Output is correct |
3 | Correct | 24 ms | 1952 KB | Output is correct |
4 | Correct | 27 ms | 2056 KB | Output is correct |
5 | Correct | 34 ms | 2368 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 22 ms | 1588 KB | Output is correct |
2 | Correct | 19 ms | 2112 KB | Output is correct |
3 | Correct | 23 ms | 1832 KB | Output is correct |
4 | Correct | 52 ms | 2968 KB | Output is correct |
5 | Correct | 25 ms | 1904 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 24 ms | 2584 KB | Output is correct |
2 | Correct | 24 ms | 2380 KB | Output is correct |
3 | Correct | 23 ms | 2084 KB | Output is correct |
4 | Correct | 39 ms | 2968 KB | Output is correct |
5 | Correct | 44 ms | 2324 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 30 ms | 2476 KB | Output is correct |
2 | Correct | 22 ms | 2460 KB | Output is correct |
3 | Correct | 22 ms | 2092 KB | Output is correct |
4 | Correct | 50 ms | 2988 KB | Output is correct |
5 | Correct | 30 ms | 2252 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 130 ms | 8408 KB | Output is correct |
2 | Correct | 121 ms | 11844 KB | Output is correct |
3 | Correct | 115 ms | 11344 KB | Output is correct |
4 | Correct | 188 ms | 13756 KB | Output is correct |
5 | Correct | 150 ms | 10964 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 123 ms | 12376 KB | Output is correct |
2 | Correct | 198 ms | 10800 KB | Output is correct |
3 | Correct | 120 ms | 9940 KB | Output is correct |
4 | Correct | 186 ms | 13524 KB | Output is correct |
5 | Correct | 157 ms | 11588 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 149 ms | 10024 KB | Output is correct |
2 | Correct | 154 ms | 14184 KB | Output is correct |
3 | Correct | 128 ms | 13664 KB | Output is correct |
4 | Correct | 237 ms | 16864 KB | Output is correct |
5 | Correct | 177 ms | 12968 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 142 ms | 14828 KB | Output is correct |
2 | Correct | 237 ms | 12996 KB | Output is correct |
3 | Correct | 133 ms | 11804 KB | Output is correct |
4 | Correct | 221 ms | 16608 KB | Output is correct |
5 | Correct | 183 ms | 13804 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 175 ms | 11808 KB | Output is correct |
2 | Correct | 160 ms | 16580 KB | Output is correct |
3 | Correct | 149 ms | 15908 KB | Output is correct |
4 | Correct | 261 ms | 19204 KB | Output is correct |
5 | Correct | 199 ms | 14716 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 162 ms | 17268 KB | Output is correct |
2 | Correct | 275 ms | 15000 KB | Output is correct |
3 | Correct | 190 ms | 14068 KB | Output is correct |
4 | Correct | 277 ms | 19060 KB | Output is correct |
5 | Correct | 207 ms | 15812 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 226 ms | 13476 KB | Output is correct |
2 | Correct | 188 ms | 18948 KB | Output is correct |
3 | Correct | 183 ms | 18052 KB | Output is correct |
4 | Correct | 295 ms | 22148 KB | Output is correct |
5 | Correct | 241 ms | 17664 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 209 ms | 19844 KB | Output is correct |
2 | Correct | 304 ms | 17024 KB | Output is correct |
3 | Correct | 182 ms | 16068 KB | Output is correct |
4 | Correct | 295 ms | 21956 KB | Output is correct |
5 | Correct | 242 ms | 18088 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 253 ms | 16836 KB | Output is correct |
2 | Correct | 204 ms | 23596 KB | Output is correct |
3 | Correct | 229 ms | 22556 KB | Output is correct |
4 | Correct | 370 ms | 9540 KB | Output is correct |
5 | Correct | 301 ms | 21684 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 249 ms | 24604 KB | Output is correct |
2 | Correct | 367 ms | 21188 KB | Output is correct |
3 | Correct | 219 ms | 20260 KB | Output is correct |
4 | Correct | 372 ms | 9500 KB | Output is correct |
5 | Correct | 313 ms | 22816 KB | Output is correct |