답안 #1016375

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1016375 2024-07-08T02:22:38 Z cryptobunny Mobile (BOI12_mobile) C++14
12 / 100
846 ms 24560 KB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, sz;
    cin >> n >> sz;
    vector<pair<int, int>> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i].first >> a[i].second;
    }
    double l = 1, r = 2e9;
    while (r - l > 1e-3) {
        double mid = (l + r) / 2, j = 0;
        vector<pair<int, int>> s;
        for (int i = 0; i < n; i++) {
            double temp = sqrt(mid * mid - a[i].second * a[i].second);
            double left = a[i].first - temp, right = a[i].first + temp;
            s.push_back({left, right});
            if (left <= j) j = max(j, right);
        }
        if (j >= sz) r = mid;
        else l = mid;
    }
    cout << fixed << setprecision(6) << l << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 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
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 348 KB Output is correct
2 Correct 2 ms 348 KB Output is correct
3 Correct 2 ms 348 KB Output is correct
4 Correct 2 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 600 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 348 KB Output is correct
4 Incorrect 4 ms 348 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 344 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 348 KB Output is correct
4 Incorrect 5 ms 472 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 348 KB Output is correct
2 Correct 4 ms 348 KB Output is correct
3 Correct 3 ms 348 KB Output is correct
4 Incorrect 5 ms 344 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 65 ms 2744 KB Output is correct
2 Incorrect 68 ms 2744 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 64 ms 2764 KB Output is correct
2 Correct 70 ms 2636 KB Output is correct
3 Incorrect 75 ms 2764 KB Output isn't correct
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 66 ms 2964 KB Output is correct
2 Incorrect 74 ms 2792 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 87 ms 3080 KB Output is correct
2 Incorrect 90 ms 3152 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 87 ms 3120 KB Output is correct
2 Incorrect 85 ms 3116 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 349 ms 12540 KB Output is correct
2 Incorrect 398 ms 12412 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 417 ms 12400 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 450 ms 18332 KB Output is correct
2 Incorrect 500 ms 18752 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 541 ms 18180 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 500 ms 20176 KB Output is correct
2 Incorrect 576 ms 20756 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 625 ms 21048 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 584 ms 22964 KB Output is correct
2 Incorrect 671 ms 21888 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 680 ms 22392 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 725 ms 24312 KB Output is correct
2 Incorrect 827 ms 24352 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 846 ms 24560 KB Output isn't correct
2 Halted 0 ms 0 KB -