QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#166701#7071. Maximize the Ratioucup-team004#AC ✓2297ms8224kbC++203.8kb2023-09-06 16:54:292023-09-06 16:54:30

Judging History

你现在查看的是最新测评结果

  • [2023-09-06 16:54:30]
  • 评测
  • 测评结果:AC
  • 用时:2297ms
  • 内存:8224kb
  • [2023-09-06 16:54:29]
  • 提交

answer

#include <bits/stdc++.h>

using i64 = long long;

std::mt19937 rng(std::chrono::steady_clock::now().time_since_epoch().count());

struct Point {
    int x = 0;
    int y = 0;
};

Point operator-(const Point &a, const Point &b) {
    return {a.x - b.x, a.y - b.y};
}

int cross(const Point &a, const Point &b) {
    return a.x * b.y - a.y * b.x;
}

int dot(const Point &a, const Point &b) {
    return a.x * b.x + a.y * b.y;
}

using real = long double;

int sgn(const Point &a) {
    if (a.y > 0 || (a.y == 0 && a.x > 0)) {
        return 1;
    }
    return -1;
}

void chmax(real &a, real b) {
    if (a < b) {
        a = b;
    }
}

void solve() {
    int n;
    std::cin >> n;
    
    std::vector<Point> a(n);
    for (int i = 0; i < n; i++) {
        std::cin >> a[i].x >> a[i].y;
    }
    
    std::vector<int> perm(n);
    std::iota(perm.begin(), perm.end(), 0);
    std::shuffle(perm.begin(), perm.end(), rng);
    real ans = 0;
    
    std::vector<std::vector<int>> p(n);
    for (int i = 0; i < n; i++) {
        p[i].reserve(n);
        for (int j = 0; j < n; j++) {
            if (i != j) {
                p[i].push_back(j);
            }
        }
        std::sort(p[i].begin(), p[i].end(),
            [&](int u, int v) {
                int su = sgn(a[u] - a[i]);
                int sv = sgn(a[v] - a[i]);
                if (su != sv) {
                    return su == 1;
                }
                return cross(a[u] - a[i], a[v] - a[i]) > 0;
            });
    }
    
    std::vector dp(n, std::vector<real>(n));
    auto check = [&](int s, real x) {
        int m = 0;
        while (m < n - 1 && sgn(a[p[s][m]] - a[s]) == 1) {
            m++;
        }
        std::vector<int> id(n, -1);
        for (int i = 0; i < m; i++) {
            id[p[s][i]] = i;
        }
        id[s] = m;
        dp.assign(n, std::vector(n, real(-INFINITY)));
        for (int i = 0; i < m; i++) {
            int t = p[s][i];
            dp[s][t] = cross(a[s], a[t]) - x * dot(a[s] - a[t], a[s] - a[t]);
            // for (int v = 0; v < n; v++) {
            //     for (int u = 0; u < n; u++) {
            //         if (id[v] > i && cross(a[t] - a[u], a[v] - a[t]) > 0) {
            //             chmax(dp[t][v], dp[u][t] + cross(a[t], a[v]) - x * dot(a[t] - a[v], a[t] - a[v]));
            //         }
            //     }
            // }
            int l = std::find(p[t].begin(), p[t].end(), s) - p[t].begin() + 1;
            real mx = dp[s][t];
            for (int j = l, k = l; j < l + n - 1; j++) {
                int v = p[t][j % (n - 1)];
                if (id[v] > i) {
                    while (k < l + n - 1 && cross(a[t] - a[p[t][k % (n - 1)]], a[v] - a[t]) > 0) {
                        chmax(mx, dp[p[t][k % (n - 1)]][t]);
                        k++;
                    }
                    chmax(dp[t][v], mx + cross(a[t], a[v]) - x * dot(a[t] - a[v], a[t] - a[v]));
                }
            }
            if (dp[t][s] >= 0) {
                return true;
            }
        }
        return false;
    };
    
    for (auto i : perm) {
        if (!check(i, ans)) {
            continue;
        }
        real lo = ans, hi = 1E9;
        while (hi - lo > std::max<real>(lo, 1) * 1E-10) {
            real x = (lo + hi) / 2;
            if (check(i, x)) {
                lo = x;
            } else {
                hi = x;
            }
        }
        ans = lo;
    }
    std::cout << ans / 2 << "\n";
}

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    
    std::cout << std::fixed << std::setprecision(10);
    
    int t;
    std::cin >> t;
    
    while (t--) {
        solve();
    }
    
    return 0;
}

这程序好像有点Bug,我给组数据试试?

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3788kb

input:

2
4
0 0
0 5
5 5
5 0
4
0 0
0 5
5 0
2 2

output:

0.2500000000
0.1250000000

result:

ok 2 numbers

Test #2:

score: 0
Accepted
time: 12ms
memory: 3784kb

input:

10
17
-9722 1816
-7497 -7673
-7388 -5697
-6958 -2013
-6342 -1070
-2174 3512
-733 -6190
878 7923
933 3099
1272 -2456
1729 8840
3169 7709
5249 73
5335 9097
7157 -440
7709 -5560
8165 -5508
43
-9806 -3643
-9740 3557
-9702 8981
-9023 -2592
-9021 9149
-8607 9336
-8391 -3769
-7812 -8877
-7706 7904
-6135 -1...

output:

0.4258889402
0.7481556422
0.8946286896
0.7669823099
0.7571447705
0.2421482766
0.5194325959
0.5315468282
0.6029925129
0.5005706359

result:

ok 10 numbers

Test #3:

score: 0
Accepted
time: 349ms
memory: 5476kb

input:

10
3
-9000 -9000
9999 10000
-10000 -10000
3
-9900 -9900
9999 10000
-10000 -10000
3
-9990 -9990
9999 10000
-10000 -10000
3
-9995 -9995
9999 10000
-10000 -10000
3
-9996 -9996
9999 10000
-10000 -10000
3
-9997 -9997
9999 10000
-10000 -10000
3
-9998 -9998
9999 10000
-10000 -10000
3
-9999 -9999
9999 10000...

output:

0.0000003281
0.0000000314
0.0000000031
0.0000000015
0.0000000012
0.0000000009
0.0000000006
0.0000000003
0.4906204658
0.4999414108

result:

ok 10 numbers

Test #4:

score: 0
Accepted
time: 46ms
memory: 3848kb

input:

10
50
100 17
99 63
94 31
89 26
88 60
83 64
80 -34
80 -100
78 78
77 -52
75 100
74 83
72 12
71 -75
67 52
64 39
57 -30
55 -46
54 80
54 29
53 -41
53 -67
50 65
49 47
47 82
42 89
32 -18
31 -58
30 95
14 -52
3 41
2 91
1 -51
0 -13
-1 9
-4 -92
-12 -84
-24 36
-24 23
-26 -32
-42 71
-47 -50
-54 -34
-58 -14
-63 -...

output:

0.9527165119
1.0230764614
0.9983504713
0.9316404659
0.8527122452
1.0009338424
0.8548333240
0.9809934289
0.7995637247
0.8279220779

result:

ok 10 numbers

Test #5:

score: 0
Accepted
time: 47ms
memory: 3752kb

input:

10
50
949 -233
922 593
919 191
895 -669
815 -680
810 -926
797 742
716 -196
654 -861
615 171
601 960
576 613
556 497
548 812
514 -479
474 920
438 113
405 786
391 339
221 -101
145 85
88 634
59 -595
-18 763
-21 -684
-90 -561
-135 260
-163 -833
-164 809
-167 467
-184 807
-185 82
-198 -898
-266 -163
-290...

output:

0.8927460363
0.9008523049
0.9771669606
0.9984628928
0.9773885624
0.8349574046
1.1035980526
1.0344777796
0.9480368602
0.8809544454

result:

ok 10 numbers

Test #6:

score: 0
Accepted
time: 35ms
memory: 3728kb

input:

10
50
-9917 -3616
-9885 -4517
-9513 6748
-8826 -6899
-8479 7056
-7817 -2162
-7544 -4637
-7470 -3825
-7294 3956
-6965 -7406
-6716 -5246
-5410 6177
-4925 -3847
-4058 -2634
-3130 -7723
-3103 8606
-3008 3497
-2748 6165
-2692 1331
-2505 -8653
-2461 -9593
-1330 8211
-559 8916
-23 -904
1330 7350
1347 -5608...

output:

1.0007535680
0.9588383329
0.8263029005
0.9512299972
0.9134661074
0.7847958927
0.7956779163
0.8429734154
0.8409507349
1.0716763471

result:

ok 10 numbers

Test #7:

score: 0
Accepted
time: 1321ms
memory: 8136kb

input:

1
500
996 191
996 -813
994 -424
988 791
984 815
982 604
979 -274
978 50
968 657
968 -293
967 292
967 -663
966 -901
962 -435
954 -659
951 102
950 13
949 493
947 490
944 345
938 -599
935 945
932 486
927 168
925 830
923 908
909 495
904 -781
903 -725
898 -599
897 342
896 -678
893 -877
891 967
886 71
886...

output:

2.4375928750

result:

ok found '2.437592875', expected '2.437592875', error '0.000000000'

Test #8:

score: 0
Accepted
time: 2081ms
memory: 8056kb

input:

1
500
2062 -6425
74 8744
-4254 -4541
8966 3710
-3920 -7208
5979 1602
1933 3049
-1414 -7976
-414 -8460
-2512 7825
1117 -6899
1572 -6490
-4971 -476
1359 -3158
9298 8032
-3081 8350
8412 8090
6035 2969
-5191 4640
567 -8788
541 2042
-4974 8577
-1461 -3635
-1429 -8052
8613 -1188
-2097 -186
-8104 6746
9941...

output:

2.5615741108

result:

ok found '2.561574111', expected '2.561574111', error '0.000000000'

Test #9:

score: 0
Accepted
time: 42ms
memory: 3732kb

input:

10
50
999 26
996 16
955 -320
946 -296
930 368
928 350
927 -355
924 -361
887 451
810 587
759 -645
553 838
530 845
523 859
511 -850
504 -851
478 -873
441 -899
415 -917
408 -922
386 931
371 -918
321 944
260 960
150 -982
3 1002
-104 1000
-158 996
-212 -976
-394 -914
-454 -888
-488 -863
-558 -825
-592 -8...

output:

1.7374991948
1.9472589768
1.7870725464
2.1437947082
2.2343719939
1.6208050596
2.2422266021
1.7993467330
1.8256456177
1.9087102508

result:

ok 10 numbers

Test #10:

score: 0
Accepted
time: 38ms
memory: 3732kb

input:

10
50
-9999 121
-9935 -1132
-9905 1373
-9715 -2369
-9654 2604
-9341 -3568
-9252 3793
-8820 -4710
-8704 4923
-8160 -5779
-8018 5975
-7372 -6756
-7206 6933
-6467 -7627
-6280 7781
-5460 -8377
-5255 8507
-4367 -8995
-4147 9099
-3205 -9472
-2974 9547
-1992 -9799
-1754 9844
-748 -9971
-506 9987
506 -9987
...

output:

3.9736350395
3.9736347287
3.9736352683
3.9736347992
3.9736352501
3.9736352685
3.9736353196
3.9736352421
3.9736350678
3.9736354973

result:

ok 10 numbers

Test #11:

score: 0
Accepted
time: 928ms
memory: 7608kb

input:

1
469
-9337 -3578
-9384 -3453
-9430 -3327
-9474 -3200
-9516 -3073
-9556 -2945
-9594 -2817
-9631 -2688
-9666 -2559
-9700 -2429
-9732 -2299
-9762 -2168
-9790 -2037
-9816 -1906
-9841 -1774
-9864 -1642
-9885 -1510
-9904 -1377
-9922 -1245
-9937 -1112
-9951 -978
-9964 -845
-9974 -711
-9983 -578
-9990 -444...

output:

37.3205684263

result:

ok found '37.320568426', expected '37.320568428', error '0.000000000'

Test #12:

score: 0
Accepted
time: 862ms
memory: 7528kb

input:

1
471
9999 124
9999 -9
9998 -142
9996 257
9996 -276
9992 390
9991 -409
9986 524
9985 -542
9978 657
9977 -675
9968 790
9967 -808
9957 923
9955 -941
9944 1055
9942 -1074
9929 1188
9926 -1206
9912 1320
9909 -1339
9893 1452
9891 -1471
9873 1584
9870 -1603
9851 1716
9848 -1734
9827 1847
9824 -1865
9802 1...

output:

37.3213396094

result:

ok found '37.321339609', expected '37.321339612', error '0.000000000'

Test #13:

score: 0
Accepted
time: 1017ms
memory: 8184kb

input:

1
496
-9999 -37
-9999 88
-9998 -164
-9997 215
-9995 -291
-9994 342
-9991 -417
-9989 468
-9985 -544
-9982 595
-9977 -670
-9973 721
-9968 -796
-9963 847
-9957 -923
-9952 974
-9944 -1049
-9939 1100
-9930 -1175
-9924 1225
-9915 -1300
-9908 1351
-9897 -1426
-9890 1476
-9878 -1551
-9870 1602
-9858 -1676
-...

output:

38.8470734575

result:

ok found '38.847073458', expected '38.847073458', error '0.000000000'

Test #14:

score: 0
Accepted
time: 1099ms
memory: 8180kb

input:

1
498
9738 2271
9709 2394
9678 2516
9645 2638
9611 2760
9575 2881
9538 3001
9500 3122
9460 3241
9418 3360
9375 3479
9330 3597
9284 3714
9236 3831
9187 3947
9137 4063
9085 4178
9031 4292
8976 4406
8920 4519
8862 4631
8803 4742
8743 4853
8681 4963
8617 5072
8553 5180
8487 5288
8419 5395
8351 5500
8281...

output:

39.6282662373

result:

ok found '39.628266237', expected '39.628266239', error '0.000000000'

Test #15:

score: 0
Accepted
time: 1276ms
memory: 8060kb

input:

1
500
9999 61
9999 -64
9998 186
9998 -190
9995 312
9995 -315
9990 437
9990 -441
9984 563
9983 -566
9976 688
9976 -692
9966 814
9966 -817
9955 939
9955 -942
9943 1064
9942 -1067
9929 1189
9928 -1192
9913 1313
9912 -1317
9896 1438
9895 -1441
9877 1562
9876 -1566
9856 1686
9856 -1690
9834 1810
9834 -18...

output:

38.5555264491

result:

ok found '38.555526449', expected '38.555526451', error '0.000000000'

Test #16:

score: 0
Accepted
time: 995ms
memory: 8080kb

input:

1
500
-5005 -7483
1259 -8917
-1862 8810
-3528 8283
4887 -7560
-1808 8814
5578 7051
6345 -6376
8997 -107
3061 8453
-8995 454
8094 -3929
6553 -6164
-2866 -8523
6729 -5964
8738 -2135
-6828 -5872
7522 -4926
-5501 7123
-7509 -4948
380 8990
-8705 2317
5884 6808
-8655 2484
7459 5052
1343 8900
-8897 -1416
3...

output:

13.3792579505

result:

ok found '13.379257950', expected '13.379257951', error '0.000000000'

Test #17:

score: 0
Accepted
time: 1359ms
memory: 8076kb

input:

1
500
-9997 210
-9995 -303
-9992 390
-9987 498
-9975 -697
-9974 713
-9969 786
-9961 -874
-9957 -923
-9956 -933
-9955 -941
-9953 958
-9953 964
-9949 999
-9945 1047
-9943 -1064
-9942 -1072
-9928 1193
-9927 -1199
-9926 1212
-9922 1240
-9911 -1323
-9901 1396
-9900 1409
-9899 1417
-9884 1515
-9860 1665
-...

output:

19.7824515312

result:

ok found '19.782451531', expected '19.782451532', error '0.000000000'

Test #18:

score: 0
Accepted
time: 1289ms
memory: 8216kb

input:

1
500
-8861 -4616
3066 9528
-4327 -9020
8286 5583
-8209 -5722
4503 8932
8896 4575
-9959 -1001
-6507 7594
7526 -6596
7194 -6957
9248 3798
-9635 -2646
9769 -2125
8117 5841
9241 -3841
9119 -4111
-7487 6633
8830 4709
912 -9953
-4032 9143
3422 -9397
3234 -9461
-8444 5366
9083 4174
-4903 8720
359 -9984
-2...

output:

13.6430949957

result:

ok found '13.643094996', expected '13.643094996', error '0.000000000'

Test #19:

score: 0
Accepted
time: 827ms
memory: 8128kb

input:

1
500
9980 4612
9971 4632
9954 -4690
9933 -4725
9925 -4745
9919 4746
9901 4775
9899 -4790
9890 4806
9874 4857
9874 -4844
9872 4866
9856 -4886
9854 -4906
9849 -4887
9836 4927
9835 4907
9820 -4940
9811 4984
9798 -4996
9779 5043
9773 -5038
9739 5118
9738 5112
9736 5118
9731 5108
9680 5241
9674 5218
964...

output:

1.0040684522

result:

ok found '1.004068452', expected '1.004068452', error '0.000000000'

Test #20:

score: 0
Accepted
time: 1527ms
memory: 8036kb

input:

1
500
-9867 -4896
4794 9920
9573 -5448
-8522 6927
-5248 -9658
7042 8431
-5751 -9357
-5173 9712
9346 5837
6917 -8543
-5247 9690
6558 -8809
-8925 -6419
5166 -9716
-6466 -8913
9391 -5742
-4734 9919
5942 9262
-8388 7122
-7959 7581
-6910 -8576
9735 -5116
-5336 -9630
9416 -5697
-5780 9358
9994 4641
-9234 ...

output:

0.9803755088

result:

ok found '0.980375509', expected '0.980375509', error '0.000000000'

Test #21:

score: 0
Accepted
time: 1299ms
memory: 8180kb

input:

1
500
9996 6638
9995 6629
9990 -6638
9976 6655
9966 6670
9966 -6680
9965 6667
9950 -6724
9949 6698
9948 -6707
9945 6730
9944 6698
9927 -6733
9917 6767
9916 -6770
9912 6767
9899 6788
9893 6775
9878 -6830
9866 -6837
9819 -6912
9811 6902
9801 6914
9766 6975
9761 -6994
9759 -6981
9754 6993
9754 -6994
97...

output:

0.5338503542

result:

ok found '0.533850354', expected '0.533850354', error '0.000000000'

Test #22:

score: 0
Accepted
time: 1224ms
memory: 8140kb

input:

1
500
-9370 -7468
8408 8545
6968 -9785
-8261 8690
-9767 -6968
-9658 7147
7936 -9012
-7687 -9210
9152 -7773
7967 8991
-7627 -9282
9770 -6952
-7454 9397
-8998 7929
6683 -9961
8460 -8513
-9006 -7958
6792 9907
-6959 9775
-9790 -6927
-7419 9421
7172 -9627
7508 9364
-8692 8265
8201 -8769
9440 -7390
8518 -...

output:

0.5344356953

result:

ok found '0.534435695', expected '0.534435695', error '0.000000000'

Test #23:

score: 0
Accepted
time: 849ms
memory: 8052kb

input:

1
500
9992 -8326
9990 8330
9986 8312
9983 -8341
9981 -8339
9970 -8336
9970 -8343
9967 8330
9957 8342
9954 -8345
9953 -8347
9953 -8366
9945 8368
9934 -8383
9929 8388
9925 -8380
9925 -8405
9921 -8406
9920 -8398
9913 -8412
9908 -8408
9903 -8430
9899 -8438
9890 -8440
9883 -8437
9881 8454
9874 8445
9872 ...

output:

0.3555256962

result:

ok found '0.355525696', expected '0.355525696', error '0.000000000'

Test #24:

score: 0
Accepted
time: 1069ms
memory: 8184kb

input:

1
500
-10000 8322
-9999 -8325
-9992 -8346
-9992 8313
-9983 8301
-9982 8333
-9980 8330
-9978 -8352
-9978 -8332
-9974 -8368
-9965 -8337
-9963 8361
-9952 -8338
-9944 -8403
-9942 8345
-9933 8379
-9932 -8405
-9930 -8417
-9927 -8376
-9924 -8415
-9923 -8408
-9923 -8396
-9918 8433
-9916 -8393
-9915 8408
-99...

output:

0.3950094162

result:

ok found '0.395009416', expected '0.395009416', error '0.000000000'

Test #25:

score: 0
Accepted
time: 869ms
memory: 8008kb

input:

1
500
9935 -9856
9840 9974
9873 9915
9953 9837
9832 9925
9989 9786
9957 -9801
9896 9944
-9954 -9815
-9794 9989
-9847 -9985
9864 -9955
9982 -9781
-9917 -9886
-9980 -9805
-9796 -9975
9815 -9970
-9954 9841
-9794 -9974
9852 9925
9940 -9885
9898 9876
-9964 9855
-9925 -9914
-9853 9969
-9899 -9884
-9897 -9...

output:

0.9598639455

result:

ok found '0.959863945', expected '0.959863946', error '0.000000000'

Test #26:

score: 0
Accepted
time: 1177ms
memory: 8052kb

input:

1
500
9944 9858
-9930 9880
9928 9921
-9944 9884
-9881 9957
9859 9978
9937 9905
9912 -9952
-9897 9904
-9927 9899
-9901 9916
-9862 9940
9971 9913
-9908 9917
-9920 9888
9950 9854
9991 9873
9874 9943
-9900 9935
-9953 -9880
-9832 -9969
9929 9953
9956 9926
9928 9940
-9875 -9938
9957 -9864
-9911 9901
9840 ...

output:

1.3358656793

result:

ok found '1.335865679', expected '1.335865679', error '0.000000000'

Test #27:

score: 0
Accepted
time: 957ms
memory: 8168kb

input:

1
500
-9990 9966
-9878 9940
9938 -9928
-9879 -9927
9863 9978
-9850 -9996
-9981 -9898
9948 9994
9939 9989
9986 9922
9920 9881
9997 -9958
-9890 -9909
-9946 9945
-9903 9992
9845 9955
-9914 -9973
9921 -9937
-9838 -9992
-9900 9981
9966 9890
9993 9970
-9848 9956
-9882 -9953
-9898 -9991
-9926 9884
-9895 99...

output:

1.3677892631

result:

ok found '1.367789263', expected '1.367789263', error '0.000000000'

Test #28:

score: 0
Accepted
time: 35ms
memory: 3732kb

input:

10
50
61 -32
28 -78
87 -58
-44 -1
94 -50
-34 3
36 76
-64 11
-11 9
-17 -14
80 -12
63 45
25 32
21 -65
-65 0
40 -9
48 64
-25 -73
-35 -19
-72 95
99 -86
-71 -50
26 -21
-20 -62
-89 -60
-90 -62
57 49
38 -85
66 91
-23 -81
-52 65
1 -51
-84 -65
33 -58
9 -15
-9 96
-95 92
57 -63
50 -75
-7 73
-67 82
-59 -75
-89 ...

output:

0.8294272982
0.8391265955
0.9071455720
0.8737665000
0.7502237637
0.8461102106
0.8396545979
0.7105715798
0.9021825005
0.7578405018

result:

ok 10 numbers

Test #29:

score: 0
Accepted
time: 39ms
memory: 3724kb

input:

10
50
-973 844
-818 460
-683 -651
-367 384
-286 922
-229 242
-118 941
-100 3
-95 87
-94 16
-91 -44
-89 74
-89 91
-85 86
-72 8
-60 -81
-60 65
-46 -29
-44 96
-41 -94
-37 -6
-23 16
-22 -61
-4 -54
-4 52
4 5
18 50
23 -20
23 23
25 74
42 85
43 -100
48 -76
50 23
53 -14
59 -62
61 44
66 -65
70 -56
79 -14
81 2...

output:

0.8218273662
0.8388909495
0.8177339258
0.8793859649
0.8300565449
0.7990035002
0.7788878278
0.8260351925
0.8528481013
0.8588730321

result:

ok 10 numbers

Test #30:

score: 0
Accepted
time: 39ms
memory: 3780kb

input:

10
50
-885 467
-749 673
-98 -9
-97 -50
-94 2
-90 -57
-82 61
-81 74
-80 92
-77 78
-75 32
-74 -36
-70 -46
-66 90
-58 -38
-58 24
-50 -85
-45 -57
-43 94
-38 -38
-33 -4
-30 95
-29 -74
-25 92
-22 -51
-20 40
-18 86
-16 -32
-16 90
2 -93
2 62
15 77
15 93
28 72
30 1
33 55
37 -68
37 1000
38 5
42 60
44 16
45 -7...

output:

0.9554604440
0.9268668722
0.9827243199
0.8627393225
0.9403154134
0.8649170750
0.7967004106
0.8983010403
0.8232577665
0.8513958037

result:

ok 10 numbers

Test #31:

score: 0
Accepted
time: 43ms
memory: 3780kb

input:

10
50
18 71
1 23
-3 33
-100 -89
65 -29
-98 -38
26 -13
-91 72
-1 -59
-79 29
-36 -6
87 -4
28 -5
3 -98
-18 18
-72 72
96 -16
-42 -87
-59 -92
85 11
-31 7
-23 15
-75 -78
-43 74
-15 76
-16 -84
17 29
-30 -26
10 -64
-30 81
-12 -5
51 -37
37 54
-52 -64
-21 -3
36 61
-78 70
-39 32
7 -52
-87 -65
-325 936
488 -873...

output:

0.8015721012
0.8165746719
1.0210837389
0.8088927027
0.8982205163
0.8134475748
0.8484345843
0.8155051982
0.8108430541
0.7634750586

result:

ok 10 numbers

Test #32:

score: 0
Accepted
time: 41ms
memory: 3788kb

input:

10
50
9121 -9146
3466 -4078
196 6917
100 74
100 37
96 -4
86 35
82 95
77 -78
73 41
61 16
60 -7
58 -28
51 -57
50 -47
45 34
43 -62
39 19
38 -40
30 -74
20 -50
20 -84
15 -88
5 -97
1 1
-15 9
-17 -60
-22 -45
-35 68
-38 -82
-39 46
-40 20
-40 -2
-48 90
-48 -12
-49 4
-50 -44
-60 -52
-61 -37
-66 83
-73 47
-79 ...

output:

0.8400781400
0.7032435626
0.7934405830
1.0171696653
0.9386624455
0.9009956791
0.8895210510
0.9606901603
0.8336176261
0.7951999178

result:

ok 10 numbers

Test #33:

score: 0
Accepted
time: 32ms
memory: 3740kb

input:

10
50
-9485 8438
-9347 -2540
-9037 6012
-8783 5134
-7880 -6610
-7732 -9393
-7660 -683
-6918 -6941
-6013 2861
-5853 2467
-4747 -7256
-4451 -2810
-3376 -5815
-2031 6764
-1981 5527
-1724 8250
-99 -97
-92 -97
-87 -18
-61 80
-41 -93
-39 -93
-29 -33
-26 25
-23 -86
-18 86
-12 -94
-11 23
-9 45
-2 62
0 -18
2...

output:

0.5436330570
0.6221737184
0.5976763701
0.7290796681
0.7406509695
0.7479291630
0.7144801043
0.6446201868
0.5833727307
0.6950682634

result:

ok 10 numbers

Test #34:

score: 0
Accepted
time: 38ms
memory: 3784kb

input:

10
50
25 -1
44 -80
70 86
-80 -2
-9 90
-66 -95
-24 -56
-76 -15
99 -70
-98 -5
89 -82
-32 73
-69 -91
44 -64
97 -87
5 25
-37 86
-71 -61
40 -87
18 42
-84 -69
-86 49
-71 32
-76 -34
66 -26
31 -100
98 -4
54 -56
82 -40
-28 92
-72 -91
34 8
25 66
8 60
-33 3
17 -8
-91 33
-24 -36
-78 -70
5 -16
-59 48
-19 -59
74 ...

output:

0.8269729263
0.9904536553
0.7064643799
0.7772652102
0.9332661124
0.8538448988
0.7181355393
0.8430362462
0.7409638554
0.8973418134

result:

ok 10 numbers

Test #35:

score: 0
Accepted
time: 42ms
memory: 3800kb

input:

10
50
-9891 -1651
-9887 1310
-7561 -6467
-6040 7867
-3687 9329
-2201 9840
-2023 9872
-91 -39
-86 7
-79 2
-67 -42
-58 -12
-48 40
-40 -2
-37 65
-35 52
-28 -80
-28 67
-22 -58
-20 -89
2 -77
2 -71
9 3
14 46
19 90
23 42
24 100
45 -71
47 -26
51 -86
64 47
85 -84
2803 9584
3654 9251
3699 -9259
3909 9127
4542...

output:

0.9080447631
1.2844976692
0.9611261231
1.1355459670
1.0288025438
0.9819879375
1.0005495715
1.2546793805
0.9368652632
1.0871593681

result:

ok 10 numbers

Test #36:

score: 0
Accepted
time: 1381ms
memory: 8044kb

input:

1
500
-578 561
2 663
-743 135
768 -324
-797 -849
-847 -106
631 -514
608 -149
167 689
-364 -316
815 -945
-79 7
-56 579
-64 -236
295 124
588 580
-681 -26
810 -329
-259 476
645 128
773 -305
756 -902
265 -421
457 -616
-916 -713
787 -750
-677 -524
339 -617
602 -208
-982 573
540 637
884 -293
-729 -518
662...

output:

2.4279012569

result:

ok found '2.427901257', expected '2.427901257', error '0.000000000'

Test #37:

score: 0
Accepted
time: 1148ms
memory: 8176kb

input:

1
500
-9624 7795
-7899 4085
-6540 -1444
-6185 -8012
-6006 -7081
-5080 -5686
-3470 432
-2188 9358
-1671 138
-1564 4021
-1454 2776
-1324 2898
-998 -840
-998 23
-989 462
-988 -764
-979 -404
-979 750
-978 288
-975 286
-973 -140
-972 -777
-968 -358
-965 -877
-964 272
-963 -338
-954 659
-953 -297
-953 2
-...

output:

2.3631092460

result:

ok found '2.363109246', expected '2.363109246', error '0.000000000'

Test #38:

score: 0
Accepted
time: 1624ms
memory: 8128kb

input:

1
500
9725 8044
9687 9425
9012 9041
8967 -8661
8646 5552
8636 -8236
8634 4153
8517 -9895
8287 -8304
8181 -7930
8119 -1356
7914 9366
7866 -3754
7830 -387
7666 6983
7664 7363
7639 -991
7469 -9425
7329 588
7116 -7071
7040 -1133
6587 -7289
6574 -1834
6398 1520
6386 -8243
6338 -3104
6158 -1954
6039 4372
...

output:

2.1339866082

result:

ok found '2.133986608', expected '2.133986608', error '0.000000000'

Test #39:

score: 0
Accepted
time: 1670ms
memory: 8168kb

input:

1
500
66 -30
46 -16
11 -15
10 82
-81 50
67 -57
79 99
50 44
35 90
45 68
87 21
-93 -62
5 17
-90 -29
50 -77
83 -34
-48 29
-79 10
-98 5
-80 48
-2 47
37 85
90 -39
-41 29
1 -96
-100 -21
69 -82
43 -33
82 -8
10 64
-11 -76
-51 95
27 -77
-97 -13
36 -52
-22 33
26 -29
-1 -34
-42 -44
85 73
-81 -76
-77 -80
-63 -5...

output:

2.0818041742

result:

ok found '2.081804174', expected '2.081804174', error '0.000000000'

Test #40:

score: 0
Accepted
time: 1745ms
memory: 8060kb

input:

1
500
9262 3190
5984 6913
-5983 -6439
9364 3042
4841 -7707
-820 -733
-487 -57
690 261
-965 -553
-706 -284
-648 -948
794 -733
603 -359
760 997
321 -286
822 848
101 596
-90 188
-339 -256
710 87
968 -71
-723 -39
37 719
-36 722
-939 -841
811 -32
-406 126
288 500
407 488
-473 186
759 442
-917 -83
-279 -4...

output:

2.5565221796

result:

ok found '2.556522180', expected '2.556522180', error '0.000000000'

Test #41:

score: 0
Accepted
time: 1700ms
memory: 8224kb

input:

1
500
9532 -2771
9212 -3452
8691 2203
8378 -3131
7714 3757
7125 6845
6927 4272
6658 7340
6231 -5751
6199 -6061
3393 -8216
2612 -9013
2140 8296
999 927
991 -159
988 -989
985 811
982 873
978 103
974 696
963 938
958 -849
956 -442
953 -946
950 863
940 -856
929 952
926 -92
913 101
913 -15
910 -989
904 -3...

output:

2.3964917372

result:

ok found '2.396491737', expected '2.396491737', error '0.000000000'

Test #42:

score: 0
Accepted
time: 1659ms
memory: 8220kb

input:

1
500
-7607 4522
1354 -9666
8369 -4445
3154 7782
2314 -8543
-7256 -3752
8795 -345
5181 -6341
-3397 -8287
-9465 -297
-8083 -5113
2157 8010
8537 527
-4281 -8371
8402 -2775
-7025 6245
-8397 -3966
4444 8386
-7008 -5528
1008 9200
2401 -9706
-4018 -6956
4754 8042
9156 1462
-999 9680
-5803 5641
-8442 3648
...

output:

2.3525517594

result:

ok found '2.352551759', expected '2.352551759', error '0.000000000'

Test #43:

score: 0
Accepted
time: 1818ms
memory: 8032kb

input:

1
500
-9931 -290
-9683 -1701
-9555 -2190
-9555 -422
-9320 -2105
-9232 -1420
-9150 830
-9036 4211
-8910 -4367
-8843 2487
-8643 137
-8636 3015
-8528 -1011
-8484 5123
-8392 -4206
-8331 -5429
-8327 -4380
-8316 -1085
-8217 1804
-8207 -2105
-8159 -5688
-8095 -3214
-8087 -1096
-8045 1081
-8015 -1354
-8009 ...

output:

2.9482785898

result:

ok found '2.948278590', expected '2.948278590', error '0.000000000'

Test #44:

score: 0
Accepted
time: 1680ms
memory: 8168kb

input:

1
500
7911 6048
4650 -8856
3032 -9602
994 485
994 385
993 127
990 -246
983 770
982 522
973 242
968 422
967 -532
965 241
960 -377
948 -292
947 498
942 165
930 -201
930 -482
928 880
925 -66
921 -291
920 -751
917 -537
916 171
911 -63
905 903
898 551
892 233
892 -571
888 -432
875 -752
864 689
857 532
85...

output:

2.4589841398

result:

ok found '2.458984140', expected '2.458984140', error '0.000000000'

Test #45:

score: 0
Accepted
time: 804ms
memory: 8220kb

input:

1
500
9996 714
9898 1878
9828 -1892
8051 -5943
8014 -6057
7342 -6722
5580 -8356
5395 -8403
4454 8990
3339 9408
1507 -9981
994 -136
989 515
985 619
985 -506
977 -891
976 733
972 418
966 -637
961 757
957 -267
955 495
954 805
937 -334
935 -527
931 209
928 -720
926 831
926 -946
925 923
925 219
923 29
91...

output:

2.4258401696

result:

ok found '2.425840170', expected '2.425840170', error '0.000000000'

Test #46:

score: 0
Accepted
time: 1383ms
memory: 8056kb

input:

1
500
-249 -513
628 345
-642 31
522 410
-16 300
467 611
-220 -81
-642 -787
422 -551
811 -266
457 -429
-573 729
-282 6
-663 -18
680 -622
116 204
550 -994
301 -45
505 645
-321 133
587 -701
586 465
625 476
767 -191
379 -497
658 529
-28 237
927 -883
7 -235
216 296
-496 -506
-95 366
-907 282
-799 466
553...

output:

3.2537087890

result:

ok found '3.253708789', expected '3.253708789', error '0.000000000'

Test #47:

score: 0
Accepted
time: 1160ms
memory: 8064kb

input:

1
500
9998 1021
9983 -417
9969 -1035
9948 -1354
9946 -1288
9941 425
9935 -1208
9931 -852
9925 -784
9912 1781
9905 1622
9887 1325
9876 -1716
9866 1164
9860 -974
9835 1704
9827 2175
9810 1981
9794 1936
9765 2250
9759 -2092
9735 -2184
9730 2086
9722 1967
9688 -2812
9681 2254
9637 2679
9560 2623
9555 26...

output:

5.5935598836

result:

ok found '5.593559884', expected '5.593559884', error '0.000000000'

Test #48:

score: 0
Accepted
time: 1445ms
memory: 8064kb

input:

1
500
7466 -9018
-6303 9037
9654 6111
9866 5116
-9607 -5592
-293 -786
-573 -874
980 -303
-481 -161
-411 -207
849 155
-556 96
276 225
209 386
-208 611
205 -868
744 -587
463 -970
223 -368
-184 273
-666 508
-852 -997
-883 -8
164 -264
19 -613
-724 483
399 273
-870 -839
809 744
252 -454
-488 325
-960 -31...

output:

2.3573711301

result:

ok found '2.357371130', expected '2.357371130', error '0.000000000'

Test #49:

score: 0
Accepted
time: 1959ms
memory: 8036kb

input:

1
500
9613 7492
9101 7921
8899 -7672
7877 -9886
7753 -9347
7726 9287
7580 9908
6967 9526
5524 9875
1000 181
999 435
997 -583
993 778
993 -827
992 358
990 -620
986 658
982 -18
976 2
972 972
955 812
949 -91
949 -896
942 -689
940 852
938 -744
936 621
932 -328
928 -538
926 60
923 673
902 387
900 89
899 ...

output:

2.6732900215

result:

ok found '2.673290022', expected '2.673290022', error '0.000000000'

Test #50:

score: 0
Accepted
time: 1256ms
memory: 8056kb

input:

1
500
8814 -8116
-8073 -9249
9060 -8512
-7252 -9102
9169 -8350
-9179 7898
9170 7184
8801 6717
-9162 6215
-8919 -9227
6383 9926
-9152 6469
-8340 -9481
9520 8164
9338 -8630
9948 7170
7176 -9145
7717 -8098
-9684 -7631
-9494 6864
-9008 7630
-5206 10000
8334 -8769
-7341 -8482
-7874 -9261
-6318 9307
-7379...

output:

2.1983102595

result:

ok found '2.198310259', expected '2.198310260', error '0.000000000'

Test #51:

score: 0
Accepted
time: 1444ms
memory: 8032kb

input:

1
500
9948 6189
9938 -6279
9915 6061
9892 -4992
9866 7791
9855 6031
9824 -8165
9817 5567
9802 -8429
9764 6866
9762 6825
9738 -8291
9714 -7902
9686 -7081
9674 -6608
9655 8489
9650 -5425
9622 -8735
9599 -6850
9595 -6283
9527 -5895
9525 6510
9514 8855
9481 -5925
9472 5867
9457 6253
9443 -7021
9427 7898...

output:

1.9343223442

result:

ok found '1.934322344', expected '1.934322344', error '0.000000000'

Test #52:

score: 0
Accepted
time: 1334ms
memory: 8056kb

input:

1
500
-3783 -8371
-3246 -7924
-7313 -6323
5469 -5520
1661 -5558
7685 -4586
1735 -4750
-8159 -3591
6000 -1317
-5833 -1985
-624 -996
-259 -995
-118 -988
49 -987
336 -982
-90 -981
768 -981
4920 3413
-133 -970
703 -973
989 -979
-808 -899
7288 5017
539 -948
-821 -932
-927 -951
985 -943
-880 -950
185 -966...

output:

2.4313647986

result:

ok found '2.431364799', expected '2.431364799', error '0.000000000'

Test #53:

score: 0
Accepted
time: 1760ms
memory: 8076kb

input:

1
500
247 995
57 808
249 797
-364 881
240 927
380 822
-133 906
3 987
-322 877
56 966
381 977
-210 528
45 836
257 902
-15 501
-164 494
-378 501
47 790
-32 487
561 989
14 478
-218 449
-331 488
-609 783
431 961
-398 776
728 868
-507 835
-315 743
150 462
-216 763
362 505
-362 647
-6 433
-557 523
829 838...

output:

2.4823191716

result:

ok found '2.482319172', expected '2.482319172', error '0.000000000'

Test #54:

score: 0
Accepted
time: 1536ms
memory: 8052kb

input:

1
500
-2562 -8040
4888 -1191
-232 -986
104 -982
-952 -977
710 -966
420 -963
61 -952
-904 -929
973 -948
27 -931
-596 -791
548 -850
224 -915
14 -912
-482 -882
604 -897
58 -892
77 -795
-107 -775
-28 -746
180 -785
89 -876
-472 -679
569 -739
8341 7268
-503 -618
8553 3191
-18 -680
973 -549
-839 -632
353 -...

output:

2.3805088003

result:

ok found '2.380508800', expected '2.380508801', error '0.000000000'

Test #55:

score: 0
Accepted
time: 1505ms
memory: 8168kb

input:

1
500
-425 992
125 902
133 917
-220 986
163 736
-21 842
-511 982
432 798
-11 671
351 887
251 968
-88 674
229 712
65 935
462 905
-235 761
-102 764
369 669
558 832
543 827
127 825
657 831
228 450
658 844
40 441
463 814
487 823
215 639
-113 590
198 817
-244 632
-134 571
-299 445
-224 859
-170 567
-125 ...

output:

2.3936294821

result:

ok found '2.393629482', expected '2.393629482', error '0.000000000'

Test #56:

score: 0
Accepted
time: 1197ms
memory: 8060kb

input:

1
500
7523 -9956
4295 -8674
4631 -3824
-536 -3734
-396 -997
377 -988
308 -973
718 -947
-890 -946
-743 -925
-438 -917
730 -913
-894 -789
-909 -757
9468 1150
854 -847
891 -893
165 -855
-998 -756
354 -798
-906 -703
943 -733
246 -769
9454 7556
411 -786
-389 -634
2235 915
501 -650
272 -632
467 -622
747 -...

output:

2.6085445300

result:

ok found '2.608544530', expected '2.608544530', error '0.000000000'

Test #57:

score: 0
Accepted
time: 1145ms
memory: 8132kb

input:

1
500
-6627 9993
6673 9974
6688 9968
-6693 9956
-6714 9953
-6728 9942
6712 9942
6762 9912
-6763 9900
-6779 9899
6811 9883
-6806 9874
6834 9868
-6854 9859
6871 9846
-6866 9840
-6875 9833
-6906 9819
-6926 9801
6933 9793
-6946 9784
6962 9782
-6967 9759
-6983 9748
-6993 9751
-7013 9738
7021 9730
7028 97...

output:

0.5314335688

result:

ok found '0.531433569', expected '0.531433569', error '0.000000000'

Test #58:

score: 0
Accepted
time: 1421ms
memory: 8036kb

input:

1
500
-6659 -9988
-7311 -9516
7356 -9476
7325 -9501
7118 -9652
7058 -9703
6980 -9755
-7155 -9631
-7829 -9107
-6789 -9905
-8045 -8893
-7526 -9353
-6675 -9962
-8171 -8799
-7531 -9351
-8193 -8770
8188 -8769
-8089 -8868
7811 -9100
8282 -8692
-8267 -8685
8337 -8640
-8318 -8640
-7423 -9439
-8348 -8629
844...

output:

0.5272926988

result:

ok found '0.527292699', expected '0.527292699', error '0.000000000'

Test #59:

score: 0
Accepted
time: 1063ms
memory: 8032kb

input:

1
500
6650 9988
6674 9971
6714 9948
-6734 9931
-6831 9868
6880 9824
6928 9807
6992 9762
-7106 9677
-7113 9671
-7128 9652
7195 9613
-7254 9564
-7292 9527
7325 9505
7371 9464
7471 9392
-7486 9383
-7574 9307
-7589 9305
-7640 9251
7687 9219
7745 9156
7750 9155
-7772 9145
-7834 9086
7864 9063
8028 8926
8...

output:

0.5322738826

result:

ok found '0.532273883', expected '0.532273883', error '0.000000000'

Test #60:

score: 0
Accepted
time: 1269ms
memory: 8048kb

input:

1
500
6646 -9990
-6727 -9936
-7702 -9196
-7722 -9187
-7980 -8964
6928 -9791
8045 -8892
-7386 -9468
-8112 -8850
8148 -8812
6840 -9864
-8159 -8787
7229 -9589
8296 -8671
-7390 -9464
-7212 -9592
-6836 -9868
7928 -9013
-7273 -9552
-7735 -9167
-7157 -9626
8436 -8533
-8313 -8659
-7851 -9062
-6990 -9742
-83...

output:

0.5332537484

result:

ok found '0.533253748', expected '0.533253748', error '0.000000000'

Test #61:

score: 0
Accepted
time: 1206ms
memory: 8064kb

input:

1
500
6658 9979
-6670 9970
-6676 9966
-6690 9969
-6689 9962
6705 9958
-6696 9953
6711 9952
-6790 9891
6912 9805
-6946 9783
-6983 9769
7020 9726
7045 9717
7037 9714
7070 9699
-7061 9694
7112 9675
7116 9667
7162 9622
7180 9622
-7189 9608
-7234 9566
7267 9557
7275 9551
-7256 9550
-7290 9530
-7317 9513
...

output:

0.5300729778

result:

ok found '0.530072978', expected '0.530072978', error '0.000000000'

Test #62:

score: 0
Accepted
time: 1174ms
memory: 8032kb

input:

1
500
-827 -9266
4087 -8332
-7027 -6197
6110 -5824
703 -997
-802 -797
717 -938
530 -891
584 -933
-399 -961
-816 -922
824 -905
436 -909
473 -861
-26 -861
37 -860
481 -859
4 -839
18 -840
179 -791
-985 -767
519 -758
997 -672
-360 -785
260 -744
-7120 5295
-914 -673
549 -728
-372 -698
-372 -754
-6388 648...

output:

2.2615700384

result:

ok found '2.261570038', expected '2.261570038', error '0.000000000'

Test #63:

score: 0
Accepted
time: 1471ms
memory: 8124kb

input:

1
500
-30 945
-692 959
321 837
-559 324
785 752
-820 726
459 317
563 373
-631 274
752 631
-119 197
184 118
-10 20
-918 398
-933 662
-955 712
498 -58
-117 -38
527 -105
-51 -209
506 -289
-115 -292
-806 -99
717 -186
830 -152
2832 9018
-796 -468
718 -556
449 -724
-801 -627
969 -558
-277 -720
-835 -633
-...

output:

2.3862708261

result:

ok found '2.386270826', expected '2.386270826', error '0.000000000'

Test #64:

score: 0
Accepted
time: 1249ms
memory: 8148kb

input:

1
500
-4015 -8470
764 -959
-343 -949
-800 -846
603 -925
-904 -874
-620 -806
-276 -886
-446 -858
-81 -876
842 -826
-73 -736
8616 -723
762 -759
-878 -827
274 -711
122 -714
-820 -730
244 -663
694 -693
-530 -650
-37 -612
640 -573
-910 -499
388 -548
-825 -490
851 -448
-1373 7882
828 -355
863 -303
774 -44...

output:

2.4303269770

result:

ok found '2.430326977', expected '2.430326977', error '0.000000000'

Test #65:

score: 0
Accepted
time: 1562ms
memory: 8052kb

input:

1
500
-118 839
101 957
2 839
111 954
125 965
-136 958
-348 951
-31 763
-584 991
-253 929
-282 779
216 954
-219 935
-678 993
-150 901
-93 830
-620 973
-58 925
-239 759
312 999
-645 982
-265 732
385 875
-314 742
541 792
332 790
-481 912
-436 708
-350 753
-320 846
286 785
472 955
366 897
371 796
220 73...

output:

2.5541872366

result:

ok found '2.554187237', expected '2.554187237', error '0.000000000'

Test #66:

score: 0
Accepted
time: 1696ms
memory: 8036kb

input:

1
500
-985 -9858
841 -9762
1704 -9706
520 -9410
-4282 -8547
7553 -6474
-4647 -6805
-7126 -6662
9578 -2403
7101 -4463
882 -8960
-8861 -1142
-9288 -1124
784 -1000
12 -999
460 -998
-350 -998
-320 -963
-658 -993
-413 -918
-550 -987
-392 -825
-460 -887
968 -990
-454 -821
688 -984
-682 -978
-645 -948
-25 ...

output:

2.4197296112

result:

ok found '2.419729611', expected '2.419729611', error '0.000000000'

Test #67:

score: 0
Accepted
time: 1449ms
memory: 8056kb

input:

1
500
-88 9999
36 9999
162 9998
-214 9997
288 9995
-340 9994
-465 9989
539 9985
-591 9982
664 9977
790 9968
-841 9964
915 9958
1040 9945
-1091 9940
1165 9931
-1216 9925
-1465 9891
1538 9880
-1589 9872
1662 9860
-1713 9852
1786 9839
-1837 9829
-1960 9805
2033 9791
-2206 9753
2278 9736
-2329 9724
2400...

output:

39.7874047062

result:

ok found '39.787404706', expected '39.787404709', error '0.000000000'

Test #68:

score: 0
Accepted
time: 1432ms
memory: 8172kb

input:

1
500
-191 -9998
437 -9990
-943 -9955
-1318 -9912
-1566 -9876
1685 -9856
1933 -9811
-1937 -9810
2301 -9731
-2306 -9730
-2792 -9602
3147 -9491
-3152 -9490
-3389 -9407
3502 -9366
3737 -9275
4760 -8794
-4764 -8791
5196 -8544
-5930 -8051
6027 -7979
-6229 -7822
6323 -7746
-6801 -7330
7069 -7072
7330 -680...

output:

39.1620803112

result:

ok found '39.162080311', expected '39.162080314', error '0.000000000'

Test #69:

score: 0
Accepted
time: 1241ms
memory: 8048kb

input:

1
500
65 9999
-186 9998
190 9998
-311 9995
316 9994
441 9990
-562 9984
567 9983
-688 9976
692 9975
-813 9966
818 9966
-938 9955
943 9955
-1063 9943
1068 9942
-1188 9929
1193 9928
-1313 9913
1317 9912
-1437 9896
1442 9895
-1562 9877
1566 9876
-1686 9856
1690 9856
1814 9834
-1933 9811
1937 9810
-2056 ...

output:

39.7875074194

result:

ok found '39.787507419', expected '39.787507423', error '0.000000000'

Test #70:

score: 0
Accepted
time: 1051ms
memory: 8168kb

input:

1
500
108 -9999
-143 -9998
233 -9997
-394 -9992
-519 -9986
-645 -9979
735 -9972
-896 -9959
986 -9951
1111 -9938
-1146 -9934
1235 -9923
-1395 -9902
-1519 -9883
1609 -9869
1732 -9848
1856 -9826
-1891 -9819
1979 -9802
-2137 -9768
2225 -9749
-2259 -9741
-2382 -9712
2469 -9690
-2503 -9681
-2625 -9649
307...

output:

39.1638657611

result:

ok found '39.163865761', expected '39.163865762', error '0.000000000'

Test #71:

score: 0
Accepted
time: 915ms
memory: 8060kb

input:

1
500
-291 9995
-417 9991
462 9989
587 9982
712 9974
838 9964
1088 9940
1337 9910
1462 9892
1586 9873
-1666 9860
-1790 9838
1834 9830
-1913 9815
1957 9806
-2036 9790
2447 9695
-2526 9675
-2647 9643
2690 9631
-3009 9536
3051 9522
-3128 9497
3171 9483
3290 9443
-3366 9416
3408 9401
3526 9357
3760 9266...

output:

39.7874976807

result:

ok found '39.787497681', expected '39.787497682', error '0.000000000'

Test #72:

score: 0
Accepted
time: 1472ms
memory: 8060kb

input:

1
500
-3379 -9308
3206 -9464
5096 -8496
-7187 -6827
-8002 -5883
8647 -5155
-8537 -5120
-8688 -4814
516 -1000
113 -1000
-289 -999
415 -996
46 -993
-216 -988
571 -988
901 -986
-437 -984
-323 -983
-492 -977
426 -969
295 -964
-25 -966
-769 -896
768 -750
-826 -846
659 -936
252 -943
-903 -964
784 -936
-74...

output:

2.5791375283

result:

ok found '2.579137528', expected '2.579137528', error '0.000000000'

Test #73:

score: 0
Accepted
time: 1422ms
memory: 8224kb

input:

1
500
260 857
312 845
394 842
136 836
421 817
526 955
309 966
502 809
571 806
331 949
344 942
-65 959
403 948
669 842
18 821
545 836
-54 899
668 923
804 847
602 916
-304 997
731 834
-125 754
-495 984
-329 981
-636 986
-22 791
679 990
7 651
252 799
708 997
389 658
-317 952
1 748
540 670
-325 854
831 ...

output:

2.7356047399

result:

ok found '2.735604740', expected '2.735604740', error '0.000000000'

Test #74:

score: 0
Accepted
time: 1468ms
memory: 8044kb

input:

1
500
-7471 -6662
-8229 -5569
8975 -4609
668 -997
-819 -992
298 -987
-156 -990
-387 -986
877 -982
-945 -975
-981 -972
778 -970
-214 -965
-95 -957
-62 -933
-78 -963
220 -953
95 -963
-577 -929
-785 -908
-964 -856
-867 -739
-72 -880
-665 -877
-567 -839
642 -917
205 -904
114 -889
-51 -888
-260 -892
-351...

output:

2.3666126971

result:

ok found '2.366612697', expected '2.366612697', error '0.000000000'

Test #75:

score: 0
Accepted
time: 1483ms
memory: 8220kb

input:

1
500
-251 921
-128 889
-69 851
-36 947
-204 953
-59 907
-120 968
201 989
-109 999
-625 969
202 688
427 632
155 849
318 684
22 589
-705 954
-285 663
-534 812
8 622
351 650
-354 850
-223 762
169 592
261 814
-284 613
384 678
398 819
-292 611
472 831
-347 690
498 835
582 858
557 680
286 380
286 393
338...

output:

2.4836264600

result:

ok found '2.483626460', expected '2.483626460', error '0.000000000'

Test #76:

score: 0
Accepted
time: 1509ms
memory: 8120kb

input:

1
500
-1489 -9866
2367 -9713
2915 -9519
3438 -9329
4203 -9087
6639 -7587
7472 -6664
-8253 -5744
9334 -3723
9629 -2658
-717 -991
745 -975
712 -960
172 -974
-551 -974
-89 -941
993 -939
970 -927
-954 -936
-877 -868
-869 -880
620 -931
499 -927
-913 -903
959 -905
839 -882
-839 -872
-709 -926
704 -870
-69...

output:

2.5153862888

result:

ok found '2.515386289', expected '2.515386289', error '0.000000000'

Test #77:

score: 0
Accepted
time: 885ms
memory: 7524kb

input:

1
471
376 9992
-424 9991
-557 9984
-823 9966
-1089 9940
1173 9930
1306 9914
1570 9875
-1749 9845
1964 9805
-2141 9767
2224 9749
-2659 9639
-2915 9565
-3421 9396
3501 9366
-3671 9301
4118 9112
4239 9056
4833 8754
4950 8688
-4991 8664
5180 8553
5406 8412
5629 8265
-5778 8161
5955 8033
6061 7953
-6100 ...

output:

37.3213335931

result:

ok found '37.321333593', expected '37.321333595', error '0.000000000'

Test #78:

score: 0
Accepted
time: 1164ms
memory: 7528kb

input:

1
471
242 -9997
-290 -9995
376 -9992
-424 -9991
-557 -9984
-690 -9976
-823 -9966
-1221 -9925
1570 -9875
1701 -9854
1964 -9805
2094 -9778
-2141 -9767
2224 -9749
-2271 -9738
-2530 -9674
-2659 -9639
-2788 -9603
2997 -9540
3124 -9499
-3421 -9396
3501 -9366
3750 -9270
-3795 -9251
3873 -9219
-4040 -9147
4...

output:

37.1648312530

result:

ok found '37.164831253', expected '37.164831254', error '0.000000000'

Test #79:

score: 0
Accepted
time: 1223ms
memory: 7488kb

input:

1
471
142 9998
-257 9996
675 9977
-923 9957
-1055 9944
1603 9870
-1716 9851
-2109 9775
2257 9741
-2498 9682
2645 9643
-2756 9612
-3390 9407
3408 9401
3533 9355
-3640 9313
-3887 9213
4027 9153
4148 9098
-4373 8992
4628 8864
-4729 8810
-4846 8746
-4963 8681
5434 8394
5656 8246
-5967 8024
-6073 7944
60...

output:

37.1648312516

result:

ok found '37.164831252', expected '37.164831254', error '0.000000000'

Test #80:

score: 0
Accepted
time: 1008ms
memory: 7528kb

input:

1
471
-4343 -9007
4539 -8910
-7239 -6898
7477 -6639
7737 -6335
9133 -4071
9239 -3825
9699 -2433
9982 -590
-9407 3390
-9160 4010
9126 4088
6100 7923
-4950 8688
4759 8794
4283 9036
3671 9301
-3124 9499
2659 9639
-109 9999
24 9999
157 9998
-242 9997
290 9995
-376 9992
424 9991
-509 9987
557 9984
-642 9...

output:

37.3213436092

result:

ok found '37.321343609', expected '37.321343609', error '0.000000000'

Test #81:

score: 0
Accepted
time: 921ms
memory: 7608kb

input:

1
471
124 9999
-276 9996
257 9996
390 9992
-409 9991
524 9986
657 9978
-941 9955
1055 9944
-1074 9942
-1471 9891
-1603 9870
1716 9851
1847 9827
-1865 9824
2109 9775
-2127 9771
-2257 9741
2498 9682
-2773 9607
-2901 9569
-3029 9530
3264 9452
3390 9407
-3533 9355
3640 9313
3764 9264
-3781 9257
-3904 92...

output:

37.3213381248

result:

ok found '37.321338125', expected '37.321338127', error '0.000000000'

Test #82:

score: 0
Accepted
time: 1397ms
memory: 8128kb

input:

1
500
873 -865
781 -771
-756 -737
603 -634
634 -618
511 -570
428 -543
946 -87
-778 -310
-277 -307
-27 -280
-501 8
905 259
991 402
-935 303
-688 195
457 134
-166 253
-535 547
814 838
762 723
-922 917
161 738
483 674
537 649
148 834
-53 850
128 898
-45 953
-104 890
-175 961
-153 961
8 968
256 865
325 ...

output:

2.4850343319

result:

ok found '2.485034332', expected '2.485034332', error '0.000000000'

Test #83:

score: 0
Accepted
time: 1668ms
memory: 8136kb

input:

1
500
-276 991
336 982
-80 979
271 913
-476 798
359 930
-781 870
174 716
333 512
37 544
683 790
18 443
781 846
197 352
-676 710
604 718
465 487
-611 663
-969 842
876 882
-818 750
744 662
-861 751
-715 518
-827 777
-442 391
835 650
56 278
791 330
661 430
-872 231
493 312
970 603
189 188
-20 -110
-26 ...

output:

2.3893091840

result:

ok found '2.389309184', expected '2.389309184', error '0.000000000'

Test #84:

score: 0
Accepted
time: 1240ms
memory: 8056kb

input:

1
500
-6321 -9673
6374 -9791
8509 -9637
7687 -9543
-9338 -8295
-8224 -9002
9609 -8491
-6715 -9278
-9146 -7885
-9655 -6903
-9578 -6764
9329 -7787
964 -997
-901 -994
886 -993
212 -983
717 -987
55 -949
-887 -914
-49 -961
-307 -944
-80 -913
230 -931
-187 -905
-485 -895
527 -897
622 -837
741 -894
-290 -8...

output:

2.4179028912

result:

ok found '2.417902891', expected '2.417902891', error '0.000000000'

Test #85:

score: 0
Accepted
time: 1589ms
memory: 8176kb

input:

1
500
93 981
-147 887
-493 890
-186 997
-586 905
246 888
-484 866
-549 913
261 951
-284 843
-475 912
205 978
-786 925
-406 810
-165 800
-518 989
174 862
448 852
-176 439
428 970
-138 525
221 854
-118 741
286 838
380 934
27 786
-696 883
-751 887
-440 766
-26 413
253 397
352 798
-522 940
163 758
-824 ...

output:

2.3739518172

result:

ok found '2.373951817', expected '2.373951817', error '0.000000000'

Test #86:

score: 0
Accepted
time: 1224ms
memory: 8032kb

input:

1
500
-8010 -9561
-968 -977
848 -934
806 -942
-52 -952
603 -955
-177 -916
-976 -916
80 -909
-469 -887
485 -885
270 -834
61 -858
-576 -872
-9702 5557
-9504 5710
-455 -821
8784 6779
-134 -853
765 -855
-9720 8248
-8206 7891
8780 9067
-620 -819
202 -786
-789 -821
6811 9320
-92 -759
-427 -739
-965 -672
5...

output:

2.4332771216

result:

ok found '2.433277122', expected '2.433277122', error '0.000000000'

Test #87:

score: 0
Accepted
time: 1341ms
memory: 8032kb

input:

1
500
257 970
-246 994
-478 989
-24 654
-413 764
376 838
376 905
522 961
33 578
-15 732
-379 691
23 719
-182 817
-3 607
-518 918
-317 613
-410 741
746 788
63 599
794 805
440 553
395 433
-711 839
-687 823
942 716
713 773
-615 524
110 503
507 355
234 431
711 608
-280 367
129 291
-547 538
-566 308
-766...

output:

2.4758764683

result:

ok found '2.475876468', expected '2.475876468', error '0.000000000'

Test #88:

score: 0
Accepted
time: 1730ms
memory: 8036kb

input:

1
500
-381 -996
178 -990
-260 -986
828 -987
456 -984
964 -951
-607 -965
17 -956
-264 -970
83 -951
-175 -935
666 -950
-964 -876
651 -939
-611 -927
189 -934
-658 -911
216 -932
-291 -925
694 -905
341 -862
-884 -835
996 -876
-744 -850
-547 -854
-703 -846
252 -840
441 -848
-657 -829
-879 -761
-290 -831
5...

output:

2.5257888662

result:

ok found '2.525788866', expected '2.525788866', error '0.000000000'

Test #89:

score: 0
Accepted
time: 1508ms
memory: 8076kb

input:

1
500
86 954
-138 961
347 966
400 991
-311 979
-571 985
199 824
416 897
573 885
-282 780
426 842
122 757
616 859
-103 701
-394 765
329 577
727 878
-95 414
-664 831
755 826
358 401
-298 350
-248 602
-431 409
-461 435
-554 563
-336 405
-426 402
295 345
-598 407
6 570
-52 331
-281 533
-827 737
-762 922...

output:

2.5521632604

result:

ok found '2.552163260', expected '2.552163261', error '0.000000000'

Test #90:

score: 0
Accepted
time: 1718ms
memory: 8044kb

input:

1
500
-613 -997
133 -997
-383 -995
592 -993
680 -992
-448 -992
96 -982
-932 -972
-371 -986
351 -958
-671 -965
-20 -958
-329 -972
869 -941
-420 -983
302 -929
-932 -924
-768 -914
617 -957
120 -924
-555 -933
-214 -913
350 -897
-883 -865
-341 -915
631 -930
-116 -869
-652 -931
-112 -849
-839 -848
509 -91...

output:

2.6034795025

result:

ok found '2.603479502', expected '2.603479503', error '0.000000000'

Test #91:

score: 0
Accepted
time: 1342ms
memory: 8056kb

input:

1
500
430 996
-14 976
-24 970
227 953
-174 950
-112 932
-43 947
366 968
-243 928
-400 982
-278 914
633 959
-416 729
-220 885
-493 962
-654 730
-325 913
-626 754
-41 700
166 823
-590 753
-667 987
-32 902
-696 757
-695 744
-420 736
381 932
-472 875
67 711
734 983
363 675
705 991
41 697
-214 586
-589 7...

output:

2.6069329073

result:

ok found '2.606932907', expected '2.606932907', error '0.000000000'

Test #92:

score: 0
Accepted
time: 1567ms
memory: 8044kb

input:

1
500
424 -9823
1447 -9135
-6854 -6798
6723 -5036
-9353 -1088
-9618 -1144
-729 -986
-72 -974
-515 -966
-876 -970
-302 -956
164 -951
-986 -939
-799 -925
-801 -904
-209 -923
-604 -915
-543 -877
-923 -839
-123 -869
-386 -859
-423 -859
-356 -847
391 -848
0 -836
4 -823
958 -811
370 -753
-956 -738
30 -753...

output:

2.3660414510

result:

ok found '2.366041451', expected '2.366041451', error '0.000000000'

Test #93:

score: 0
Accepted
time: 1108ms
memory: 8056kb

input:

1
500
456 983
348 914
398 804
116 890
184 910
199 800
294 851
633 962
125 925
115 791
58 780
-77 962
483 765
668 850
-277 627
-96 635
-253 599
10 879
-233 642
597 841
-584 916
-352 923
-15 715
-210 674
-702 978
929 851
-103 572
-233 729
-124 767
480 677
13 570
-405 908
-740 981
-29 691
-546 591
-925...

output:

2.5216079513

result:

ok found '2.521607951', expected '2.521607951', error '0.000000000'

Test #94:

score: 0
Accepted
time: 1354ms
memory: 8028kb

input:

1
500
3050 -9436
4283 -7934
6019 -7508
7454 -6154
4547 -7226
-927 -989
200 -979
323 -966
-490 -964
-893 -959
-98 -959
653 -913
-207 -954
542 -934
823 -943
-932 -774
-675 -921
-622 -911
-815 -864
53 -855
-128 -874
912 -748
321 -866
-245 -834
-518 -821
957 -714
-8816 898
-979 -602
590 -750
8116 1089
7...

output:

2.4885016930

result:

ok found '2.488501693', expected '2.488501693', error '0.000000000'

Test #95:

score: 0
Accepted
time: 1237ms
memory: 8176kb

input:

1
500
-188 868
-137 968
-453 930
520 993
538 979
-391 783
248 952
573 990
117 920
-445 819
590 952
-309 543
-769 968
326 834
-77 557
-836 929
-639 528
262 637
-399 641
-510 552
-690 836
-514 527
-773 850
113 738
-406 664
-147 488
-414 634
-787 916
273 710
-580 695
595 515
522 518
616 546
613 645
217...

output:

2.3908945835

result:

ok found '2.390894584', expected '2.390894583', error '0.000000000'

Test #96:

score: 0
Accepted
time: 1481ms
memory: 8216kb

input:

1
500
-2892 -8672
-6954 -6970
6395 -5827
391 -984
268 -959
594 -950
582 -933
-571 -938
654 -905
234 -895
-833 -885
198 -915
-241 -842
-176 -832
112 -879
9330 1971
-891 -717
-607 -751
8660 3654
812 -729
-294 -705
198 -846
159 -818
-41 -669
202 -784
226 -795
-846 -609
-390 -560
-933 -472
327 -735
-307...

output:

2.4016858378

result:

ok found '2.401685838', expected '2.401685838', error '0.000000000'

Test #97:

score: 0
Accepted
time: 1750ms
memory: 8180kb

input:

1
500
-432 8024
808 9448
2061 9432
-2069 8132
2666 8064
3676 8873
-2468 9676
4171 8736
-5680 7824
3680 7615
24 87
-52 64
7 74
-39 86
4824 7663
-56 93
-46 84
-48 93
47 96
-40 37
-70 77
27 73
37 62
26 38
-84 87
-100 92
-91 78
-96 83
20 25
-7188 6810
88 75
97 90
-66 35
-3 17
-65 48
97 55
-24 -10
26 -12...

output:

2.8937601940

result:

ok found '2.893760194', expected '2.893760194', error '0.000000000'

Test #98:

score: 0
Accepted
time: 1459ms
memory: 8056kb

input:

1
500
-1087 -9631
-604 -9291
5120 -8262
3416 -8756
2845 -8996
4184 -8118
-1563 -9094
6037 -7641
7596 -4718
-1195 -8206
-8409 -1659
2230 -8500
-5991 -6054
9217 -884
9396 -317
-6964 -5910
-6929 -4015
2870 -7960
9543 -2737
5896 -6534
-1353 -7915
4270 -7674
2870 -7862
3099 -7683
-7412 -3521
5462 -6512
9...

output:

2.9699276483

result:

ok found '2.969927648', expected '2.969927649', error '0.000000000'

Test #99:

score: 0
Accepted
time: 1539ms
memory: 8036kb

input:

1
500
-60 9038
-987 8737
-471 8631
-2095 8371
-145 9376
-645 9876
1923 8593
2877 8327
2146 7963
-4183 8106
-6 98
-33 73
-43 94
47 74
-73 75
38 90
49 92
-83 78
-73 83
-74 86
38 60
57 80
-10 57
-97 95
65 51
91 91
-4148 7201
5917 7476
-5668 7334
-34 39
-99 46
84 26
-90 43
16 7
-2 23
91 15
-5999 7120
-4...

output:

2.7181795203

result:

ok found '2.718179520', expected '2.718179520', error '0.000000000'

Test #100:

score: 0
Accepted
time: 1504ms
memory: 8120kb

input:

1
500
1810 -9699
965 -9412
-5913 -7977
3607 -8831
5463 -8018
-8846 -2452
-7305 -3619
-4295 -7742
-9082 -1015
110 -8167
5222 -7082
1578 -8817
-9846 -269
8540 -3041
9505 -1353
6644 -6401
7738 -2373
2057 -8118
4960 -6517
9587 12
9738 1852
-9043 1426
99 -99
8631 434
85 -96
46 -90
-68 -96
-63 -67
-81 -93...

output:

2.7837859815

result:

ok found '2.783785981', expected '2.783785982', error '0.000000000'

Test #101:

score: 0
Accepted
time: 2297ms
memory: 8044kb

input:

1
500
466 9800
-2150 8762
3471 8530
1235 9494
-22 8366
-4948 8684
-2679 8097
-68 99
-5020 7910
6162 7359
-63 92
0 52
25 54
28 84
51 64
-39 58
63 83
7 68
55 66
41 49
-53 46
43 26
-73 36
51 28
-5661 6128
-7 -20
-59 1
7351 6710
47 4
92 47
43 1
98 44
-88 28
-6460 5784
-30 -42
-40 -34
-7609 5280
-75 -25
...

output:

2.8237602005

result:

ok found '2.823760201', expected '2.823760201', error '0.000000000'

Test #102:

score: 0
Accepted
time: 1753ms
memory: 8128kb

input:

1
500
1588 -9695
-822 -950
-585 -900
-621 -875
817 -863
482 -932
-569 -843
723 -853
406 -778
-648 -741
118 -720
819 -717
-423 -728
714 -715
-719 -648
729 -660
-271 -613
273 -543
-849 -492
-962 -360
-666 -432
753 -396
-860 -355
-503 -273
-41 -266
-249 -380
924 -116
157 -235
-952 111
-102 -207
959 214...

output:

2.5961280135

result:

ok found '2.596128013', expected '2.596128014', error '0.000000000'

Test #103:

score: 0
Accepted
time: 1254ms
memory: 8172kb

input:

1
500
52 850
-360 878
-362 866
47 718
-813 872
-243 667
655 943
760 947
282 630
303 612
382 574
-731 779
497 650
693 522
-816 638
-863 654
902 972
273 312
140 265
814 594
-406 236
-319 382
-877 476
825 495
974 608
-667 507
636 88
429 256
13 42
-881 505
169 10
942 397
232 -20
-379 -44
-903 200
-898 3...

output:

2.4869247390

result:

ok found '2.486924739', expected '2.486924739', error '0.000000000'

Test #104:

score: 0
Accepted
time: 1257ms
memory: 8172kb

input:

1
500
-1572 -9598
-855 -986
-84 -959
-915 -904
-406 -875
-960 -840
-569 -826
-455 -748
-747 -782
512 -669
-66 -799
-134 -715
264 -606
322 -539
924 -607
-849 -535
605 -603
-511 -521
450 -481
-916 -277
38 -430
184 -376
636 -361
991 -29
784 -168
360 -196
-134 -193
-955 124
-754 -226
-832 143
-945 105
1...

output:

2.3641475567

result:

ok found '2.364147557', expected '2.364147557', error '0.000000000'

Test #105:

score: 0
Accepted
time: 1183ms
memory: 8056kb

input:

1
500
27 901
609 923
373 922
-471 871
507 837
-667 926
499 845
-564 788
-62 562
697 718
-203 669
556 668
-385 681
839 824
834 646
413 341
-82 462
917 705
-88 431
-402 472
-360 341
469 313
-295 288
-453 250
383 177
140 108
-842 273
-365 190
821 113
-76 42
-355 -19
477 72
-806 192
-511 -100
993 248
66...

output:

2.5028297775

result:

ok found '2.502829778', expected '2.502829778', error '0.000000000'

Test #106:

score: 0
Accepted
time: 1885ms
memory: 8060kb

input:

1
500
5309 -7045
788 -988
-469 -939
268 -933
-656 -889
-378 -837
369 -862
391 -846
-635 -827
-891 -763
92 -678
-887 -633
-388 -612
-80 -653
386 -567
698 -548
-738 -440
-394 -434
-510 -412
997 4
181 -361
175 -273
17 -372
-577 -208
350 -191
481 -109
-230 -119
838 183
790 126
-602 -103
-411 -174
171 97...

output:

2.4053395185

result:

ok found '2.405339518', expected '2.405339519', error '0.000000000'

Test #107:

score: 0
Accepted
time: 1148ms
memory: 8176kb

input:

1
500
-265 9992
1192 9921
1864 9829
-2428 9698
-2767 9612
-3157 9496
-3662 9310
-4062 9141
-4337 9021
-5198 8539
5646 8259
-6113 7903
6694 7440
7152 6989
7646 6430
8076 5886
-8285 5596
8574 5142
-8762 4829
-9016 4310
-9241 3810
9539 2971
-9717 2358
9826 1864
-9911 1280
-9983 618
9995 377
9997 -218
-...

output:

14.0097576588

result:

ok found '14.009757659', expected '14.009757659', error '0.000000000'

Test #108:

score: 0
Accepted
time: 1505ms
memory: 8064kb

input:

1
500
-257 -9997
1139 -9942
-1900 -9825
-2310 -9739
-2671 -9635
3168 -9484
3937 -9189
-4465 -8944
-4962 -8681
5328 -8465
-1917 -9807
6187 -7846
-7159 -6979
-7643 -6443
-7956 -6048
-8263 -5634
8612 -5093
-8791 -4775
-9081 -4163
-9243 -3798
9430 -3319
9684 -2499
-9880 -1542
9932 -1118
9998 -261
-9977 ...

output:

14.2416354812

result:

ok found '14.241635481', expected '14.241635482', error '0.000000000'

Test #109:

score: 0
Accepted
time: 1213ms
memory: 8060kb

input:

1
500
360 9996
591 9982
-1061 9938
1808 9833
2552 9678
3247 9451
3890 9205
-4428 8966
5052 8619
-5414 8395
5828 8129
-6152 7875
-6410 7681
-6800 7320
7343 6783
7969 6050
8310 5557
8700 4915
8982 4405
-9173 3975
9440 3300
-9676 2515
-9768 2163
-9815 1955
9946 1054
-10000 -389
9955 -1006
9799 -1976
96...

output:

14.3573385638

result:

ok found '14.357338564', expected '14.357338564', error '0.000000000'

Test #110:

score: 0
Accepted
time: 1606ms
memory: 8072kb

input:

1
500
-271 -10000
646 -9977
-1217 -9917
-1736 -9849
-2219 -9748
-2881 -9566
3722 -9279
-4261 -9051
-4883 -8720
5231 -8517
5748 -8193
6252 -7809
6648 -7478
-7425 -6693
-7808 -6242
8274 -5608
8520 -5229
-8843 -4665
9220 -3844
-9591 -2817
-9836 -1850
-9898 -1382
9985 -625
9988 359
-9951 903
-9866 1605
...

output:

13.6396048086

result:

ok found '13.639604809', expected '13.639604809', error '0.000000000'

Test #111:

score: 0
Accepted
time: 1217ms
memory: 8076kb

input:

1
500
660 9976
-1244 9912
-1720 9848
2434 9694
-2989 9549
3622 9316
4444 8960
4917 8700
5280 8486
5730 8192
-6122 7901
-6774 7353
7322 6821
7750 6313
-7983 6012
-8204 5720
-8609 5090
-8938 4463
9269 3758
-9393 3413
-9739 2302
-9878 1594
-9989 575
-9993 -273
-9926 -1239
9817 -1852
-9677 -2508
9479 -3...

output:

13.9162256479

result:

ok found '13.916225648', expected '13.916225648', error '0.000000000'

Test #112:

score: 0
Accepted
time: 658ms
memory: 7520kb

input:

1
469
-57 -9999
-860 -9962
-1657 -9861
-2444 -9696
-3215 -9469
-3965 -9180
-4689 -8832
-5383 -8427
-6042 -7967
-6662 -7456
-7240 -6897
-7770 -6294
-8250 -5649
-8677 -4969
-9048 -4256
-9361 -3515
-9613 -2752
-9803 -1972
-9930 -1178
-9992 -377
-9990 426
-9924 1227
-9793 2019
-9600 2799
-9344 3561
-902...

output:

37.3205642100

result:

ok found '37.320564210', expected '37.320564210', error '0.000000000'

Test #113:

score: 0
Accepted
time: 1010ms
memory: 7500kb

input:

1
469
124 9999
927 9956
1723 9850
2509 9680
3278 9447
4026 9153
4748 8800
5439 8391
6095 7927
6712 7412
7286 6849
7812 6241
8288 5594
8711 4910
9077 4195
9384 3453
9631 2688
9816 1906
9937 1112
9995 310
9987 -493
9915 -1293
9780 -2085
9581 -2864
9320 -3624
8999 -4360
8619 -5069
8184 -5745
7697 -6383...

output:

37.3205684250

result:

ok found '37.320568425', expected '37.320568428', error '0.000000000'

Test #114:

score: 0
Accepted
time: 781ms
memory: 7504kb

input:

1
469
124 -9999
927 -9956
-1741 -9847
2638 -9645
-3421 -9396
4270 -9042
-4998 -8661
5772 -8165
-6423 -7664
7100 -7041
-7654 -6435
8212 -5705
-8653 -5011
9077 -4195
-9391 -3436
9666 -2559
-9844 -1756
9964 -845
-9999 -24
9959 894
-9852 1708
9654 2606
-9407 3390
9056 4239
-8677 4969
8184 5745
-7685 639...

output:

37.3205788306

result:

ok found '37.320578831', expected '37.320578832', error '0.000000000'

Test #115:

score: 0
Accepted
time: 1116ms
memory: 7688kb

input:

1
469
91 9999
-978 9951
1822 9832
-2688 9631
3498 9367
-4316 9020
5069 8619
-5814 8135
6486 7611
-7136 7005
7707 6371
-8242 5662
8694 4940
-9098 4148
9419 3358
-9680 2509
9858 1675
-9968 793
9999 -57
-9955 -945
9838 -1789
-9640 -2656
9379 -3467
-9034 -4286
8636 -5040
-8155 -5787
7632 -6460
-7029 -71...

output:

37.3205642089

result:

ok found '37.320564209', expected '37.320564210', error '0.000000000'

Test #116:

score: 0
Accepted
time: 860ms
memory: 7688kb

input:

1
469
-9 -9999
-945 -9955
-1873 -9822
-2785 -9604
-3672 -9301
-4527 -8916
-5342 -8453
-6110 -7916
-6824 -7309
-7479 -6637
-8067 -5908
-8585 -5126
-9028 -4300
-9391 -3436
-9671 -2541
-9867 -1624
-9975 -693
-9997 243
-9930 1178
-9776 2103
-9536 3009
-9212 3889
-8808 4734
-8325 5538
-7770 6294
-7147 69...

output:

37.3205642096

result:

ok found '37.320564210', expected '37.320564210', error '0.000000000'

Test #117:

score: 0
Accepted
time: 1064ms
memory: 8220kb

input:

1
500
2306 9676
-4819 8850
-39 92
-22 70
31 52
85 75
-28 43
-72 69
-84 61
67 37
78 12
7188 6904
-35 -7
-7726 6218
23 -29
8306 5518
20 -54
-9882 1319
-9413 3407
9244 3858
87 -89
-76 -48
52 -67
-59 -92
57 -99
9863 -1638
9518 -3122
8993 -4239
-8771 -4936
-8239 -5728
-3719 -9325
5853 -8012
-5894 -8132
-...

output:

5.6093558679

result:

ok found '5.609355868', expected '5.609355868', error '0.000000000'

Test #118:

score: 0
Accepted
time: 1537ms
memory: 8044kb

input:

1
500
915 -9976
-4199 -9043
5406 -8324
6252 -7703
-7526 -6576
8673 -4924
-9396 -3486
9736 -2037
50 -88
-56 -97
-86 -50
60 -70
-79 -51
9922 1302
-9629 2849
9808 1381
-9 -33
8152 5633
49 -41
-55 -10
-65 25
-38 13
6726 7365
28 24
82 52
-18 51
-98 84
57 73
-78 90
5246 8403
4985 8714
-4084 9166
-2543 960...

output:

5.7837536768

result:

ok found '5.783753677', expected '5.783753677', error '0.000000000'

Test #119:

score: 0
Accepted
time: 1689ms
memory: 8044kb

input:

1
500
1737 9813
3405 9325
-10 99
-34 93
62 96
-5556 8336
-59 80
27 57
-77 45
-86 41
-40 9
-72 16
91 23
56 -6
20 -26
99 10
-62 -38
8550 5086
-9972 146
-9521 3110
9659 2657
93 -74
-60 -53
41 -63
21 -94
-58 -79
-9899 -1457
9293 -3434
8871 -4767
-7246 -6762
6123 -7943
-4513 -8969
-1330 -9914
2047 9883
3...

output:

5.7265822432

result:

ok found '5.726582243', expected '5.726582243', error '0.000000000'

Test #120:

score: 0
Accepted
time: 1745ms
memory: 8180kb

input:

1
500
204 -9981
1769 -9839
5190 -8463
3491 -9384
7891 -6234
-3015 -9429
-9595 -2862
-9927 -232
38 -78
-23 -73
50 -86
-94 -70
9501 3263
-9398 3313
32 -57
-71 -49
8271 5686
48 -23
-93 -2
-14 -21
45 12
-10 4
-12 13
-60 45
85 63
-34 49
-13 57
66 85
-37 100
-4454 9034
2748 9687
-469 9949
-300 -9941
-4613...

output:

5.8060100223

result:

ok found '5.806010022', expected '5.806010023', error '0.000000000'

Test #121:

score: 0
Accepted
time: 2127ms
memory: 8064kb

input:

1
500
849 9904
-2556 9737
4506 8994
49 87
-31 71
-71 92
88 76
-66 57
89 41
73 51
45 24
6918 7298
-59 -14
-94 -6
99 0
7 -43
8979 4275
9129 4162
-63 -52
22 -55
14 -58
54 -78
53 -62
9895 -454
-9526 -3125
8902 -4718
8158 -5608
7164 -7080
-5328 -8570
-4899 -8802
-3326 -9379
-366 9893
2492 9638
-4744 8701...

output:

5.5358417812

result:

ok found '5.535841781', expected '5.535841781', error '0.000000000'

Test #122:

score: 0
Accepted
time: 1366ms
memory: 8224kb

input:

1
498
-42 -9999
1091 -9940
-2169 -9761
3181 -9480
-4197 -9076
5126 -8585
-6033 -7974
6836 -7297
-7592 -6507
8233 -5675
-8803 -4742
9252 -3792
-9611 -2760
9848 -1736
-9978 -651
9992 399
-9888 1487
9678 2516
-9345 3558
8920 4519
-8374 5465
7754 6314
-7018 7123
6232 7820
-5341 8453
4425 8967
-3420 9396...

output:

39.6282648485

result:

ok found '39.628264849', expected '39.628264851', error '0.000000000'

Test #123:

score: 0
Accepted
time: 881ms
memory: 8128kb

input:

1
498
-336 9994
1425 9897
-2455 9693
3499 9367
-4462 8948
5412 8408
-6265 7793
7078 7063
-7780 6281
8419 5395
-8939 4481
9375 3479
-9688 2476
9900 1404
-9993 357
9972 -735
-9840 -1777
9587 -2841
-9236 -3831
8763 -4816
-8209 -5709
7537 -6571
-6806 -7326
5965 -8025
-5090 -8607
4120 -9111
-3142 -9493
2...

output:

39.6282864872

result:

ok found '39.628286487', expected '39.628286489', error '0.000000000'

Test #124:

score: 0
Accepted
time: 1038ms
memory: 8128kb

input:

1
498
-42 -9999
-1174 -9930
-2292 -9733
-3380 -9411
-4425 -8967
-5412 -8408
-6330 -7740
-7167 -6973
-7911 -6116
-8553 -5180
-9085 -4178
-9500 -3122
-9792 -2025
-9959 -902
-9997 231
-9906 1362
-9688 2476
-9345 3558
-8882 4594
-8304 5571
-7619 6476
-6836 7297
-5965 8025
-5018 8649
-4005 9162
-2941 955...

output:

39.6282864890

result:

ok found '39.628286489', expected '39.628286489', error '0.000000000'

Test #125:

score: 0
Accepted
time: 1226ms
memory: 8076kb

input:

1
498
777 9969
1901 9817
3001 9538
4063 9137
5072 8617
6016 7987
6882 7254
7660 6427
8339 5518
8910 4538
9367 3499
9703 2415
9915 1300
9998 168
9953 -965
9779 -2087
9480 -3181
9058 -4235
8520 -5234
7872 -6166
7122 -7018
6281 -7780
5359 -8442
4368 -8995
3321 -9432
2231 -9747
1112 -9937
-861 9962
-198...

output:

39.6282864855

result:

ok found '39.628286485', expected '39.628286489', error '0.000000000'

Test #126:

score: 0
Accepted
time: 664ms
memory: 8048kb

input:

1
498
42 -9999
-1216 -9925
2415 -9703
-3538 -9353
4650 -8852
-5657 -8245
6619 -7495
-7453 -6666
8209 -5709
-8823 -4705
9330 -3597
-9688 -2476
9917 -1279
-9999 -105
9937 1112
-9738 2271
9389 3440
-8920 4519
8304 5571
-7592 6507
6744 7383
-5830 8124
4798 8773
-3734 9276
2577 9662
-1425 9897
210 9997
-...

output:

39.6282648476

result:

ok found '39.628264848', expected '39.628264851', error '0.000000000'

Test #127:

score: 0
Accepted
time: 1136ms
memory: 8172kb

input:

1
500
82 807
274 847
-481 715
-326 509
382 207
959 897
216 422
727 314
715 440
751 454
-967 316
381 -115
-630 -51
-622 -121
202 -295
416 -218
-752 -322
-773 -281
-963 -171
-920 -391
-34 -599
-317 -702
631 -732
454 -817
458 -882
-978 -962
225 809
64 961
593 874
838 870
890 744
926 736
-892 793
-705 4...

output:

2.3407945389

result:

ok found '2.340794539', expected '2.340794539', error '0.000000000'

Test #128:

score: 0
Accepted
time: 1230ms
memory: 8036kb

input:

1
500
-1111 -9998
747 -912
-45 -849
487 -721
527 -666
-665 -537
855 -475
-900 -305
386 -419
232 -344
-504 -185
287 -290
674 -10
760 257
438 39
-931 365
975 391
-889 972
441 326
-588 326
-56 545
410 422
-227 962
6 387
-442 679
-543 -9974
-442 -903
147 -824
-438 -794
-988 -534
-88 -613
800 -452
-153 -...

output:

2.5627712628

result:

ok found '2.562771263', expected '2.562771263', error '0.000000000'

Test #129:

score: 0
Accepted
time: 1841ms
memory: 8180kb

input:

1
500
147 973
587 761
567 716
435 712
260 647
385 610
32 392
-855 510
-898 583
-978 677
-92 -10
967 583
537 106
-571 -132
-477 -265
88 -253
986 -37
883 -271
-962 -291
327 -422
-214 -599
262 -611
834 -785
389 -777
-317 -955
-157 919
464 951
66 814
226 467
-219 508
-726 536
943 914
-332 189
237 255
-9...

output:

2.4812814349

result:

ok found '2.481281435', expected '2.481281435', error '0.000000000'

Test #130:

score: 0
Accepted
time: 1124ms
memory: 8032kb

input:

1
500
-8969 -4594
-439 -937
-435 -858
-623 -788
-982 -542
-460 -617
474 -480
744 -473
154 -308
27 -269
-532 -308
973 138
502 -160
-390 -14
-836 43
-256 25
-751 652
931 591
-621 533
951 702
231 312
-536 872
-223 885
-15 697
-1468 -9861
-284 -939
-45 -806
-607 -702
-844 -530
521 -544
904 -443
707 -431...

output:

2.3584596510

result:

ok found '2.358459651', expected '2.358459651', error '0.000000000'

Test #131:

score: 0
Accepted
time: 1392ms
memory: 8056kb

input:

1
500
-284 840
319 744
537 594
-84 519
717 712
-6 354
98 460
565 175
775 354
16 112
-633 -68
318 -96
749 14
560 -151
-855 -31
-868 -269
510 -466
-189 -437
-372 -678
838 -690
521 -799
1843 9920
864 -902
186 768
-392 980
476 710
-266 520
451 696
-769 564
926 993
674 248
-856 333
81 42
-462 -74
940 253...

output:

2.5327507053

result:

ok found '2.532750705', expected '2.532750706', error '0.000000000'

Test #132:

score: 0
Accepted
time: 916ms
memory: 8124kb

input:

1
500
-4588 -9991
5826 -9333
-6281 -9031
6957 -8525
7361 -8178
7857 -7699
8200 -7321
-8582 -6893
9044 -6268
9475 -5602
-9495 -5555
-9924 -4725
9871 4867
-9530 5506
-8988 6343
8666 6766
8255 7265
-7745 7815
-7066 8435
6694 8726
6179 9103
-5601 9459
5058 9771
4863 -9872
-5554 -9488
6293 -9029
-6971 -8...

output:

1.0113977401

result:

ok found '1.011397740', expected '1.011397740', error '0.000000000'

Test #133:

score: 0
Accepted
time: 1145ms
memory: 8184kb

input:

1
500
5081 9757
5452 9543
-5878 9289
6667 8759
7228 8296
7693 7867
8181 7342
-8577 6890
-9123 6149
-9515 5521
9710 5163
-9951 4668
-9704 -5178
9484 -5564
-9057 -6257
-8696 -6745
8238 -7293
-7718 -7841
-7160 -8341
6797 -8656
5044 -9770
-5726 -9399
5088 9762
5458 9551
-5911 9271
-6742 8695
-7228 8291
...

output:

1.0183229089

result:

ok found '1.018322909', expected '1.018322909', error '0.000000000'

Test #134:

score: 0
Accepted
time: 1348ms
memory: 8036kb

input:

1
500
-4668 -9968
-5685 -9410
6412 -8948
-5105 -9751
7230 -8294
-7699 -7861
-8129 -7407
8735 -6678
-9135 -6131
9416 -5695
-9772 -5067
9971 4657
-9617 5317
9237 5954
8886 6476
8521 6944
8000 7549
-7409 8129
6914 8561
-6191 9098
5587 9463
-4906 9846
4619 -9989
6069 -9173
-6403 -8946
-6819 -8638
-7222 ...

output:

1.0134231569

result:

ok found '1.013423157', expected '1.013423157', error '0.000000000'

Test #135:

score: 0
Accepted
time: 1452ms
memory: 8140kb

input:

1
500
5113 9747
-6031 9210
-6478 8879
-7145 8369
7491 8059
-7946 7591
-8447 7042
-8974 6362
9197 6023
-9595 5376
-9851 4916
-9819 -4973
9401 -5725
9044 -6249
8688 -6748
-8309 -7192
7949 -7605
7390 -8137
-6828 -8625
5208 -9697
5769 -9359
5193 9706
6020 9196
6548 8848
-7168 8342
7496 8042
7980 7564
84...

output:

1.0042369780

result:

ok found '1.004236978', expected '1.004236978', error '0.000000000'

Test #136:

score: 0
Accepted
time: 1958ms
memory: 8172kb

input:

1
500
-4609 -9997
5407 -9568
5102 -9744
5639 -9445
-7227 -8296
-7674 -7884
8061 -7476
-7837 -7714
-8911 -6438
9278 -5900
-9626 -5303
-9993 -4607
-9609 5339
-9288 5902
-8656 6775
-8175 7365
-7535 8012
-6992 8497
-6386 8962
-5655 9435
5157 9705
-4595 -9992
5515 -9520
5426 -9563
6664 -8738
-7240 -8274
...

output:

1.0166952167

result:

ok found '1.016695217', expected '1.016695217', error '0.000000000'

Test #137:

score: 0
Accepted
time: 1443ms
memory: 8124kb

input:

1
500
205 737
379 373
735 883
-703 575
740 375
-468 241
-139 1415
-829 407
-394 -102
-931 230
22 -177
-666 -400
826 -342
606 -492
-625 -605
-252 -894
739 -454
-8000 474
5688 -2454
8708 -5388
-98 561
-135 483
-540 544
-167 297
557 265
-77 129
673 165
-796 426
-573 -140
-498 -200
-339 -282
-7727 2001
...

output:

2.0781605306

result:

ok found '2.078160531', expected '2.078160531', error '0.000000000'

Test #138:

score: 0
Accepted
time: 1262ms
memory: 8180kb

input:

1
500
1390 -9882
-656 -6643
-6848 -3800
-831 -953
-550 -786
-330 -675
-632 -541
853 -199
-750 -344
750 -185
383 -232
-2318 2400
-11 92
-846 487
-82 133
-779 504
954 863
-593 690
-675 938
-156 760
-1858 -9942
-4361 -6253
2100 -2281
69 -950
358 -896
-334 -669
-535 -620
-612 -254
-566 -333
-565 -188
82...

output:

2.2932025694

result:

ok found '2.293202569', expected '2.293202569', error '0.000000000'

Test #139:

score: 0
Accepted
time: 1450ms
memory: 8120kb

input:

1
500
133 926
-375 685
-633 991
490 535
509 488
175 372
-117 60
992 396
-99 -176
543 3866
-2368 4994
-9147 5299
925 -299
-333 -564
538 -864
-225 -870
507 -845
821 -986
8558 -3348
5424 -7037
-154 865
444 789
286 668
655 774
-2 413
291 281
-59 44
-3863 8066
324 -24
-8213 9439
1732 2711
-657 -280
439 -...

output:

2.3369602826

result:

ok found '2.336960283', expected '2.336960283', error '0.000000000'

Test #140:

score: 0
Accepted
time: 1392ms
memory: 8180kb

input:

1
500
-7884 -9927
-5471 -6832
4236 -2496
-761 -795
-830 -656
-511 -512
185 -570
5242 -384
-899 -64
572 -227
-846 55
9 -217
-325 -215
981 487
365 -23
-491 295
866 935
-633 666
47 734
-285 884
8612 -9488
8835 -5109
4109 -2522
993 -893
-706 -755
231 -638
939 -626
-8055 1648
-8035 6959
-4764 1117
4131 4...

output:

2.2450421827

result:

ok found '2.245042183', expected '2.245042183', error '0.000000000'

Test #141:

score: 0
Accepted
time: 1626ms
memory: 8168kb

input:

1
500
471 985
-305 576
56 521
459 731
-997 570
-426 219
985 745
113 -13
-5992 8637
725 -57
777 4293
-456 -273
361 -350
-202 -495
-163 -587
-971 -669
-147 -806
-5167 -2624
7744 -5214
-306 938
290 749
65 527
494 720
653 402
956 661
768 323
-616 -21
-6736 9035
6117 7093
5467 4740
-861 -175
-753 -403
93...

output:

2.3768552929

result:

ok found '2.376855293', expected '2.376855293', error '0.000000000'

Test #142:

score: 0
Accepted
time: 1662ms
memory: 8060kb

input:

1
500
-8295 -9998
-8905 -9481
-8993 -9397
-8871 -9503
-9413 -8977
-9992 -8308
-9199 -9181
-9477 -8911
-9145 -9238
-9872 -8445
9927 8388
9779 8568
-9591 8761
-9390 8996
9187 9211
-8971 9415
-8726 9647
-8546 9802
-8395 9918
-8317 -9999
-8662 -9706
-9330 -9058
-8579 -9778
-9685 -8686
8844 -9525
-8615 -...

output:

0.3560603665

result:

ok found '0.356060367', expected '0.356060366', error '0.000000000'

Test #143:

score: 0
Accepted
time: 1034ms
memory: 8180kb

input:

1
500
-8358 9961
8508 9838
8679 9683
8900 9487
-9107 9286
9326 9066
-9509 8867
9685 8672
-9864 8481
9412 -8965
-9925 -8403
9567 -8787
-8604 -9755
-8466 -9856
8974 -9407
-9339 -9055
-9408 -8967
9803 -8546
8365 9957
8522 9806
-8669 9678
8905 9480
9126 9256
9330 9047
-9528 8850
9689 8664
-9845 8474
-97...

output:

0.3565742577

result:

ok found '0.356574258', expected '0.356574258', error '0.000000000'

Test #144:

score: 0
Accepted
time: 1531ms
memory: 8124kb

input:

1
500
-8310 -9999
8955 -9432
9303 -9089
9995 -8309
-9478 -8887
9836 -8486
8323 -9978
9809 -8525
9560 -8797
9985 8325
9755 8580
9652 8697
9406 8987
9200 9198
-8993 9385
8830 9545
-8616 9733
8415 9901
8311 -9989
9371 -9009
9573 -8806
-9540 -8837
8544 -9791
9844 -8492
-8676 -9678
-9235 -9156
8369 -9957...

output:

0.3564196657

result:

ok found '0.356419666', expected '0.356419666', error '0.000000000'

Test #145:

score: 0
Accepted
time: 1162ms
memory: 8044kb

input:

1
500
-8477 9862
-8702 9662
-8865 9517
-9152 9219
9362 9021
9548 8823
9703 8636
-9916 8418
-9173 -9202
-8582 -9773
-9880 -8438
9967 -8345
8492 -9834
-9940 -8385
8534 -9805
9993 -8327
8640 -9704
8481 9862
8690 9661
8906 9482
-9157 9223
-9384 9010
-9555 8817
9727 8638
-9926 8405
-8365 -9940
-9608 -875...

output:

0.3564541184

result:

ok found '0.356454118', expected '0.356454118', error '0.000000000'

Test #146:

score: 0
Accepted
time: 1271ms
memory: 8220kb

input:

1
500
-8303 -9997
-8655 -9696
-9711 -8647
-8936 -9448
-9576 -8795
-9082 -9298
8876 -9498
9672 -8676
9689 -8670
9955 8363
9816 8527
9633 8721
-9434 8929
9194 9190
-9017 9363
-8751 9602
-8559 9792
-8356 9964
8338 -9978
-9522 -8857
-9750 -8611
9433 -8959
-8790 -9579
-9496 -8872
-8580 -9764
-9579 -8793
...

output:

0.3557855953

result:

ok found '0.355785595', expected '0.355785595', error '0.000000000'

Test #147:

score: 0
Accepted
time: 1359ms
memory: 8036kb

input:

1
500
-223 948
-529 920
-5 500
-457 309
770 819
-730 293
-382 71
-928 243
845 149
-670 -144
609 -348
187 -484
496 -601
725 -674
124 -785
-37 -896
-147 -932
92 934
52 835
132 393
174 362
665 362
-731 466
-381 74
880 425
-116 -92
243 -95
-206 -321
-433 -456
141 -571
-656 -647
-447 -742
823 -846
-39 -9...

output:

2.5830123551

result:

ok found '2.583012355', expected '2.583012355', error '0.000000000'

Test #148:

score: 0
Accepted
time: 2022ms
memory: 8164kb

input:

1
500
6991 -9831
940 -950
-915 -807
889 -701
-81 -590
276 -509
-215 -369
-184 -280
-762 -135
918 137
465 52
-371 242
553 320
27 481
831 886
607 982
-453 777
6905 -9379
346 -946
-653 -826
-539 -759
-786 -516
-213 -485
515 -309
-546 -356
349 -198
114 -73
-904 531
-640 226
-978 723
958 896
115 403
-719...

output:

2.4980426639

result:

ok found '2.498042664', expected '2.498042664', error '0.000000000'

Test #149:

score: 0
Accepted
time: 1196ms
memory: 8124kb

input:

1
500
-438 984
355 566
-610 783
-646 956
67 320
645 361
-506 178
-599 -65
-785 -111
556 -364
-803 -309
264 -545
263 -640
-863 -770
-14 -842
-961 -915
-187 692
-301 828
773 583
-71 433
-492 429
653 352
944 368
-743 -31
672 12
890 45
379 -390
-605 -453
-240 -639
-819 -780
9382 6572
-949 -956
-231 797
...

output:

2.5686666823

result:

ok found '2.568666682', expected '2.568666682', error '0.000000000'

Test #150:

score: 0
Accepted
time: 1974ms
memory: 8220kb

input:

1
500
6609 -9808
931 -876
-476 -808
117 -666
422 -532
886 -379
79 -320
-699 -276
586 -3
847 154
-740 283
-383 341
-722 614
665 785
512 646
-243 752
-193 849
4588 -9998
-900 -892
9497 6109
-581 -617
826 -555
-240 -422
557 -209
-988 145
-432 -27
798 120
-462 152
-307 271
911 829
474 607
-660 479
571 8...

output:

2.4163208956

result:

ok found '2.416320896', expected '2.416320896', error '0.000000000'

Test #151:

score: 0
Accepted
time: 1643ms
memory: 8168kb

input:

1
500
-15 668
-97 327
-663 947
492 467
-641 392
649 207
-573 -43
637 0
720 -165
934 -4
725 -319
-551 -476
589 -681
205 -773
-587 -831
219 -928
613 874
59 793
-656 961
-668 550
-267 195
968 754
929 394
673 119
67 -197
-706 -194
-956 -199
-279 -591
1000 -514
-7212 9801
-9298 6537
-740 -932
613 873
-19...

output:

2.4526358862

result:

ok found '2.452635886', expected '2.452635886', error '0.000000000'