답안 #834289

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
834289 2023-08-22T12:39:54 Z Darren0724 Mobile (BOI12_mobile) C++17
0 / 100
1000 ms 35132 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long

int32_t main(){
    int n,len;cin>>n>>len;
    vector<int> x(n),y(n);
    for(int i=0;i<n;i++){
        cin>>x[i]>>y[i];
    }
    double l=0,r=2e9,m;
    int t=100;
    while(t--){
        m=(l+r)/2;
        double now=0;
        for(int i=0;i<n;i++){
            double d=m*m-y[i]*y[i];
            if(d<0){
                continue;
            }
            d=sqrtl(d);
            if(x[i]-d<=now){
                now=x[i]+d;
            }
        }
        if(now>=len){
            r=m;
        }
        else{
            l=m;
        }
    }
    cout<<fixed<<setprecision(9)<<r<<endl;
    
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 296 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 340 KB Output is correct
2 Correct 2 ms 340 KB Output is correct
3 Incorrect 1 ms 340 KB Output isn't correct
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 464 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 316 KB Output is correct
2 Correct 5 ms 340 KB Output is correct
3 Correct 5 ms 412 KB Output is correct
4 Incorrect 4 ms 452 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 86 ms 2260 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 43 ms 2260 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 63 ms 2252 KB Output is correct
2 Correct 71 ms 2740 KB Output is correct
3 Correct 64 ms 2516 KB Output is correct
4 Incorrect 74 ms 3756 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 92 ms 3416 KB Output is correct
2 Correct 113 ms 3280 KB Output is correct
3 Correct 71 ms 2892 KB Output is correct
4 Incorrect 82 ms 3764 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 98 ms 3380 KB Output is correct
2 Correct 91 ms 3272 KB Output is correct
3 Correct 78 ms 2880 KB Output is correct
4 Incorrect 81 ms 3760 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 377 ms 12408 KB Output is correct
2 Correct 458 ms 15824 KB Output is correct
3 Correct 430 ms 15276 KB Output is correct
4 Incorrect 364 ms 17708 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 454 ms 16316 KB Output is correct
2 Incorrect 635 ms 14732 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 495 ms 14852 KB Output is correct
2 Correct 524 ms 18956 KB Output is correct
3 Correct 579 ms 18380 KB Output is correct
4 Incorrect 433 ms 21448 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 531 ms 19540 KB Output is correct
2 Incorrect 799 ms 17604 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 517 ms 17256 KB Output is correct
2 Correct 626 ms 21992 KB Output is correct
3 Correct 607 ms 21400 KB Output is correct
4 Incorrect 638 ms 24684 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 653 ms 22756 KB Output is correct
2 Incorrect 921 ms 20496 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 574 ms 19720 KB Output is correct
2 Correct 691 ms 25220 KB Output is correct
3 Correct 672 ms 24432 KB Output is correct
4 Incorrect 574 ms 28448 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 740 ms 26004 KB Output is correct
2 Incorrect 988 ms 23500 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 722 ms 24640 KB Output is correct
2 Correct 865 ms 31424 KB Output is correct
3 Correct 881 ms 30404 KB Output is correct
4 Incorrect 725 ms 35132 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 899 ms 32444 KB Output is correct
2 Execution timed out 1059 ms 29116 KB Time limit exceeded
3 Halted 0 ms 0 KB -