# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
940675 | 2024-03-07T13:06:37 Z | sleepntsheep | Mobile (BOI12_mobile) | C++ | 86 ms | 5720 KB |
#include<stdio.h> #include<math.h> #define N 100000 int n, L; double x[N], y[N]; int main() { scanf("%d%d",&n,&L); for(int i=0;i<n;++i)scanf("%lf%lf",x+i,y+i); double l=0,r=1e9; for (int iter=200;iter--;) { double m=(l+r)/2,rr=0; for(int i=0;i<n;++i) { if(m*m>=y[i]*y[i]) { double dx=sqrt(m*m-y[i]*y[i]); if(x[i]-dx<=rr) if(x[i]+dx>rr)rr=x[i]+dx; } } if(rr>=L) r=m; else l=m; } printf("%.6lf",r); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 1 ms | 424 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 1 ms | 344 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 436 KB | Output is correct |
2 | Correct | 2 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 464 KB | Output is correct |
4 | Correct | 2 ms | 348 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 348 KB | Output is correct |
2 | Correct | 4 ms | 344 KB | Output is correct |
3 | Correct | 4 ms | 348 KB | Output is correct |
4 | Correct | 3 ms | 444 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 344 KB | Output is correct |
2 | Correct | 4 ms | 348 KB | Output is correct |
3 | Correct | 4 ms | 348 KB | Output is correct |
4 | Correct | 3 ms | 348 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 500 KB | Output is correct |
2 | Correct | 4 ms | 348 KB | Output is correct |
3 | Correct | 4 ms | 344 KB | Output is correct |
4 | Correct | 3 ms | 344 KB | Output is correct |
5 | Correct | 3 ms | 540 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 86 ms | 2368 KB | Output is correct |
2 | Correct | 60 ms | 2652 KB | Output is correct |
3 | Correct | 37 ms | 1884 KB | Output is correct |
4 | Correct | 32 ms | 2648 KB | Output is correct |
5 | Correct | 20 ms | 1372 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 33 ms | 2392 KB | Output is correct |
2 | Correct | 31 ms | 2328 KB | Output is correct |
3 | Correct | 38 ms | 2860 KB | Output is correct |
4 | Correct | 34 ms | 2648 KB | Output is correct |
5 | Correct | 37 ms | 3152 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 69 ms | 2392 KB | Output is correct |
2 | Correct | 66 ms | 2652 KB | Output is correct |
3 | Correct | 57 ms | 2652 KB | Output is correct |
4 | Correct | 42 ms | 3664 KB | Output is correct |
5 | Correct | 38 ms | 2648 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 80 ms | 3420 KB | Output is correct |
2 | Correct | 81 ms | 3372 KB | Output is correct |
3 | Correct | 68 ms | 3152 KB | Output is correct |
4 | Correct | 44 ms | 3916 KB | Output is correct |
5 | Correct | 43 ms | 3156 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 80 ms | 3260 KB | Output is correct |
2 | Correct | 80 ms | 3160 KB | Output is correct |
3 | Correct | 71 ms | 3416 KB | Output is correct |
4 | Correct | 46 ms | 3796 KB | Output is correct |
5 | Correct | 42 ms | 3152 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 21 ms | 4440 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 26 ms | 5524 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 22 ms | 4436 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 26 ms | 5524 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 28 ms | 4436 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 25 ms | 5468 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 25 ms | 4516 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 27 ms | 5468 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 22 ms | 4444 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 26 ms | 5720 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |