# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
738442 | 2023-05-08T18:59:48 Z | LKR__enjoyer | Mobile (BOI12_mobile) | C++17 | 1000 ms | 57372 KB |
#include <iostream> #include<bits/stdc++.h> #define pb push_back #define f first #define s second typedef long long ll; typedef long double ld; using namespace std; int n,l; vector<pair<int,int>> pkt; bool spr(long double rad); long double bin(ld lo,ld hi) { for(int i=0;i<60;i++) { ld mid=lo+(hi-lo)/2; if(spr(mid))hi=mid; else lo=mid; } return lo; } int main() { cin>>n>>l; for(int i=0;i<n;i++) {int a,b; cin>>a>>b; pkt.pb({a,b}); } cout<<fixed<<setprecision(4)<<bin(0,(ld)(2*l)); return 0; } bool spr(ld rad){ vector<pair<ld,ld>> pts={}; for(auto p : pkt) { ld x=(ld)p.f,y=(ld)p.s; if(y>rad)continue; ld x1=x-sqrt(rad*rad-y*y),x2=x+sqrt(rad*rad-y*y); pts.pb({x1,x2}); } sort(pts.begin(),pts.end()); if(pts[0].f>0||pts[pts.size()-1].s<(ld)l)return 0; for(int i=1;i<pts.size();i++) if(pts[i].f>pts[i-1].s)return 0; return 1; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 21 ms | 540 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 48 ms | 752 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 57 ms | 752 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 6 ms | 916 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 106 ms | 7404 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 902 ms | 7600 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 535 ms | 7908 KB | Output is correct |
2 | Correct | 739 ms | 7788 KB | Output is correct |
3 | Execution timed out | 1091 ms | 7792 KB | Time limit exceeded |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 728 ms | 8480 KB | Output is correct |
2 | Correct | 958 ms | 8480 KB | Output is correct |
3 | Execution timed out | 1077 ms | 8404 KB | Time limit exceeded |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 595 ms | 8352 KB | Output is correct |
2 | Correct | 966 ms | 8448 KB | Output is correct |
3 | Execution timed out | 1047 ms | 8412 KB | Time limit exceeded |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1077 ms | 36336 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1071 ms | 36400 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1076 ms | 54488 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1060 ms | 54328 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1080 ms | 55040 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1078 ms | 55232 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1071 ms | 55832 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1074 ms | 55800 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1069 ms | 57372 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1073 ms | 57276 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |