QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#768865#8022. Walkersurenjamts#AC ✓40ms3976kbC++201.9kb2024-11-21 14:56:472024-11-21 14:56:47

Judging History

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

  • [2024-11-21 14:56:47]
  • 评测
  • 测评结果:AC
  • 用时:40ms
  • 内存:3976kb
  • [2024-11-21 14:56:47]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mk make_pair
#define S second
#define F first

void solve(){
   double n;
   cin >> n;
   double p1, p2, v1, v2;
   cin >> p1 >> v1 >> p2 >> v2;
   if(p1 > p2) swap(p1, p2), swap(v1, v2);
   double ans = (n + min(p1 , n - p1)) / v1;


    auto check = [&](double mid){
           double l1 = mid * v1, l2 = mid * v2;
           if(l1 >= n + p1) return 1;
           if(l2 >= 2 * n - p2) return 1;
           if(l1 >= n + (n - p1)) return 1;
           if(l2 >= n + p2) return 1;


           if(l1 >= p1 && l2 >= (n - p2) * 2){
                 double x1 = (l1 - p1) / 2;
                 double x2 = (l2 - 2 * (n - p2));
                 if(p1 + x1 > p2 - x2) return 1;
           }
           if(l1 >= p1 * 2 && l2 >= (n - p2)){
                 double x1 = (l1 - p1 * 2);
                 double x2 = (l2 - (n - p2)) / 2;
                 if(p1 + x1 > p2 - x2) return 1;
           }
           if(l1 >= p1 * 2 && l2 >= (n - p2) * 2){
                 double x1 = (l1 - p1 * 2);
                 double x2 = (l2 - (n - p2) * 2);
                 if(p1 + x1 > p2 - x2) return 1;

           }
           if(l1 >= p1 && l2 >= (n - p2)){
                 double x1 = (l1 - p1) /2;
                 double x2 = (l2 - (n - p2)) / 2;
                 if(p1 + x1 > p2 - x2) return 1;
           }


           if(l1 >= p1 && l2 >= 2 * n - p1 - p2) return 1;
           if(l2 >= (n - p2) && l1 >= p1 + p2) return 1;
           if(l1 >= (n - p1) && l2 >= p2) return 1;
           return 0;
    };

    double l = 0, r = 1e9;
    for(int i = 0; i < 200; i++){
          double mid = (l + r)/2;
          if(check(mid)) r = mid;
          else l = mid;
    }


    cout << setprecision(18) << min(ans, l) << endl;

}
int main(){
    ios::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL);
	  int t;  cin >> t; while(t--) solve();
}

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3904kb

input:

2
10000.0 1.0 0.001 9999.0 0.001
4306.063 4079.874 0.607 1033.423 0.847

output:

5001000
3827.83700137551614

result:

ok 2 numbers

Test #2:

score: 0
Accepted
time: 0ms
memory: 3976kb

input:

1
10.0 1.0 10.0 9.0 0.1

output:

1.09999999999999987

result:

ok found '1.1000000', expected '1.1000000', error '0.0000000'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

1
10.0 8.0 10.0 9.0 0.1

output:

1.19999999999999973

result:

ok found '1.2000000', expected '1.2000000', error '0.0000000'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

1
10.0 8.0 0.1 9.0 10

output:

1.09999999999999987

result:

ok found '1.1000000', expected '1.1000000', error '0.0000000'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

1
10.0 2.0 0.1 3.0 10

output:

1.29999999999999982

result:

ok found '1.3000000', expected '1.3000000', error '0.0000000'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3908kb

input:

1
10.0 9.0 0.1 8.0 10.0

output:

1.19999999999999973

result:

ok found '1.2000000', expected '1.2000000', error '0.0000000'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

1
10.0 4.0 0.1 6.0 0.1

output:

59.9999999999999858

result:

ok found '60.0000000', expected '60.0000000', error '0.0000000'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3716kb

input:

1
10.0 4.5 0.1 6.0 0.1

output:

57.5000000000000071

result:

ok found '57.5000000', expected '57.5000000', error '0.0000000'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

1
10.0 1.0 1.0 8.0 1.0

output:

6.5

result:

ok found '6.5000000', expected '6.5000000', error '0.0000000'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3852kb

input:

1
10.0 3.0 2.0 7.0 1.0

output:

4.59999999999999964

result:

ok found '4.6000000', expected '4.6000000', error '0.0000000'

Test #11:

score: 0
Accepted
time: 0ms
memory: 3916kb

input:

1
10.0 6.0 2.0 7.0 1.0

output:

3.66666666666666652

result:

ok found '3.6666667', expected '3.6666667', error '0.0000000'

Test #12:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

1
10.0 1.0 1.0 9.0 1.0

output:

6

result:

ok found '6.0000000', expected '6.0000000', error '0.0000000'

Test #13:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

1
10000.0 1.0 0.001 1.0 0.001

output:

9998999.99999999814

result:

ok found '9999000.0000000', expected '9999000.0000000', error '0.0000000'

Test #14:

score: 0
Accepted
time: 0ms
memory: 3968kb

input:

1
10.0 5.0 1.0 5.0 1.5

output:

4.99999999999999911

result:

ok found '5.0000000', expected '5.0000000', error '0.0000000'

Test #15:

score: 0
Accepted
time: 40ms
memory: 3844kb

input:

10000
4306.063 4079.874 0.607 1033.423 0.847
8967.336 8026.500 0.398 283.019 0.876
9568.147 4481.616 0.405 800.114 0.684
9867.264 6184.040 0.312 9853.164 0.641
3344.364 730.612 0.539 1305.868 0.947
9336.180 3672.113 0.773 432.686 0.312
1468.243 59.762 0.840 1438.446 0.827
1355.133 1096.314 0.373 109...

output:

3827.83700137551614
7999.36499215070489
12559.3358024691352
15371.5507020280802
2637.69851951547753
9931.04151753758015
934.494301139772006
2939.17962466487916
5754.03288987435371
2847.42715700141389
10975.323628219483
2180.27860696517337
23747.0454545454522
6278.10355486862409
872.397705544932705
1...

result:

ok 10000 numbers

Test #16:

score: 0
Accepted
time: 28ms
memory: 3844kb

input:

10000
2030.871 179.860 3.339 226.899 5.608
4013.779 5.483 5.886 2655.711 6.577
2948.361 1567.653 5.641 1789.794 4.572
1539.149 427.003 6.957 936.942 3.945
1689.115 359.356 1.192 742.725 8.260
2381.830 1935.542 7.989 1021.393 9.984
2247.138 2095.797 6.333 411.074 8.188
4141.126 403.006 1.882 3801.489...

output:

321.678316690442216
364.077388413537449
310.437873298736918
186.466039531888669
294.41162227602905
178.524112163931903
193.482060464155325
556.832791151594051
1413.56369502868029
403.230225988700568
743.591508581752464
396.62882096069859
209.130114714118008
611.285065590312797
4769.78106755629597
63...

result:

ok 10000 numbers

Test #17:

score: 0
Accepted
time: 36ms
memory: 3924kb

input:

10000
7410.440 722.688 93.147 7123.335 52.404
9827.385 9318.243 31.214 4329.764 21.512
2798.254 2287.444 57.751 2083.954 59.592
4104.975 2145.078 39.914 2322.922 97.161
4508.679 124.615 97.618 557.945 7.666
6167.965 5462.271 20.812 2289.103 40.872
1863.334 130.781 49.124 590.990 21.907
5210.765 2592...

output:

57.8507396033005534
201.272034213462206
34.9703651496845183
49.1029964423510563
47.4635210719334495
138.894188809154372
35.2689723963846546
38.4675708163478589
75.2072899492599163
101.62595559068042
25.9441884641475866
21.00791765637371
82.0515902408367452
99.577528521281252
27.5829436651079938
197....

result:

ok 10000 numbers

Test #18:

score: 0
Accepted
time: 23ms
memory: 3916kb

input:

10000
1825.114 831.869 305.812 812.010 435.352
6204.189 975.074 324.820 3197.714 486.818
6707.302 6252.291 617.962 3000.007 202.516
3950.818 1276.312 795.686 1233.053 192.740
7727.851 7014.938 925.386 5422.995 990.049
1828.700 1059.091 897.131 796.832 289.580
4364.009 801.827 108.050 138.855 698.515...

output:

2.72019737616574853
9.98897539548315905
11.590215903243239
6.39749403341288669
5.47750161860675533
2.75168174597693183
6.4463383034007844
0.9512955437919558
6.05187501870058142
2.50752915748476735
4.37908385724867966
11.434756432507255
3.99979695642476951
54.4577155482205058
36.477424790415057
5.952...

result:

ok 10000 numbers

Test #19:

score: 0
Accepted
time: 36ms
memory: 3916kb

input:

10000
1446.181 378.832 0.559 1049.957 0.581
8184.065 2784.411 0.567 5802.192 0.817
7897.823 922.465 0.430 2717.563 0.164
6798.147 101.965 0.861 968.021 0.766
2665.200 708.829 0.367 829.609 0.812
8278.765 4043.152 0.338 3510.780 0.746
9966.278 5152.481 0.628 9362.702 0.481
7225.976 4372.737 0.713 451...

output:

1857.28596491228086
8093.81936416184999
16570.506097560974
7611.13054830287092
2363.00254452926174
11961.9881656804719
10054.8597484276743
6132.87096774193469
1324.97701904136579
8439.46776859503916
4670.27661552766222
1876.10613598673262
6135.13224107665337
3193.46169989506734
23257.1384615384559
3...

result:

ok 10000 numbers

Test #20:

score: 0
Accepted
time: 33ms
memory: 3856kb

input:

10000
137.466 34.152 5.369 35.774 9.633
864.049 460.741 7.827 20.803 6.253
7772.734 4848.655 5.826 7486.943 2.751
51.039 18.541 3.274 4.546 4.781
2738.460 1134.632 7.353 190.640 0.845
2650.223 2047.426 7.127 2596.012 8.020
7144.450 4170.830 1.091 6484.852 6.327
4486.617 2202.655 2.404 53.792 5.306
9...

output:

10.5566282570331147
67.2009049328677435
994.738259180791147
9.72453461618908044
449.189070505001212
287.27739581871748
1233.45155681997767
855.7122125895213
2917.18170293682624
663.201636904761813
738.761457109283128
624.350228079067392
657.397521027002995
267.806633880924892
2696.93398846400305
514...

result:

ok 10000 numbers

Test #21:

score: 0
Accepted
time: 40ms
memory: 3856kb

input:

10000
6755.269 1412.870 9.877 2922.765 69.970
5809.463 1729.065 28.186 157.659 45.884
6302.936 3.007 88.634 2503.641 71.482
9471.893 5335.396 60.750 2351.889 46.506
1852.860 485.692 31.691 792.772 0.251
3760.662 837.606 43.039 302.039 3.592
5202.253 1919.974 87.263 790.867 91.590
4393.623 1307.664 8...

output:

138.316907245962511
123.175921889983414
53.1503735206065713
116.127769075855895
73.7923069641222895
92.1324655272243547
37.6136392285390002
86.2723400365630511
320.4975966420688
1.99028702764423682
112.743890056646137
90.4635627840083174
229.152943623160724
186.179236291067213
58.199299119793011
73....

result:

ok 10000 numbers

Test #22:

score: 0
Accepted
time: 34ms
memory: 3860kb

input:

10000
4561.066 3561.125 347.570 22.417 384.727
2245.766 1947.734 373.385 1583.280 767.308
9178.623 6896.214 129.852 8552.670 569.435
4123.959 3302.922 845.031 3107.197 536.921
9684.190 1373.220 417.970 6785.207 582.747
3908.264 3810.105 794.444 1678.987 885.395
1218.900 883.339 486.245 432.328 689.8...

output:

7.31141407883805527
2.28827563595112826
17.2180775681157598
3.90864003805777527
13.5448037516379589
2.55987653797079817
1.41983539234608447
5.39730254751194671
13.3497416014001509
0.213065236536710473
54.1352929160439942
6.16497611742176943
20.9924590854642084
4.32544014699937041
50.7486968101972167...

result:

ok 10000 numbers

Test #23:

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

input:

10000
8829.410 5837.483 0.025 6497.985 90.734
8571.821 4446.483 0.444 7096.946 443.881
4885.562 4543.189 0.577 4181.326 689.854
1773.759 1089.873 0.250 584.675 17.809
9380.505 2300.466 0.662 4771.696 763.116
8097.494 1695.329 0.228 3721.817 261.367
2610.676 602.316 0.789 885.868 885.685
2783.702 221...

output:

123.00609473846626
22.6337599491755661
8.10287104227850818
132.429333483070337
18.331831595720697
45.2211296758963357
3.94784150121092692
7.13551818300739082
138.226514390531491
14.896099521015298
20.8294551087717998
80.1683240580238987
2.9149411775595393
4.01375275764918804
0.342921819065928057
14....

result:

ok 10000 numbers

Test #24:

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

input:

10000
2249.884 511.364 7.379 1791.261 521.922
3286.767 1256.282 2.130 1011.930 750.770
6649.538 3604.051 3.574 523.009 443.247
259.924 246.031 4.477 182.827 131.182
6256.893 3619.190 5.039 655.815 832.185
201.818 174.860 1.245 73.051 235.173
967.278 181.624 9.270 775.260 824.343
7585.518 3383.271 9....

output:

5.18948616843129695
5.72571759660082247
16.181828641818214
2.5691100913235041
8.30669622740135871
1.1687948871681697
1.406327220586576
12.4310169522858764
25.3811249500326035
4.50459778029558411
11.2413296441428869
30.9834258842699164
4.34194180150840126
6.84858452818342833
48.9494467581058927
10.85...

result:

ok 10000 numbers

Test #25:

score: 0
Accepted
time: 25ms
memory: 3864kb

input:

10000
7243.562 6060.438 24.630 1457.089 534.665
9598.725 8617.536 48.786 2412.051 591.887
372.483 48.994 74.031 190.511 168.965
8820.924 8138.195 3.707 8383.440 784.084
677.119 288.434 24.515 569.815 987.734
3351.665 3123.984 41.357 1456.155 672.889
906.765 117.449 15.457 536.818 123.740
4324.663 36...

output:

16.2730887565110827
20.1121018324929324
2.0849391376759705
11.8079287423286292
0.794164218301688374
6.7678769550187976
9.2644816058599595
13.5025272397742793
14.3931562263251234
11.1027957324195938
15.504234624335874
69.7253075063078001
12.4881770817906332
58.7459715073323423
13.7961616912110028
44....

result:

ok 10000 numbers

Test #26:

score: 0
Accepted
time: 29ms
memory: 3868kb

input:

10000
4273.971 3319.964 412.722 3084.631 0.371
9486.875 2325.044 247.106 5565.693 0.123
6541.208 5974.260 668.802 3918.890 0.616
6617.241 3120.168 259.521 975.622 0.981
6747.529 982.828 617.311 4159.620 0.163
8490.455 5235.975 261.806 4759.763 0.927
4527.356 634.417 962.224 1951.397 0.815
2843.028 2...

output:

12.667068874448173
47.8010206146350072
10.6281919013400046
37.5206977470031191
12.5226295983709974
44.8612140287082752
5.36441930361329522
7.38796586863727445
8.22779193078464566
111.066817480411672
6.32792294441613734
13.9915294273269257
8.4491530284490679
0.194783165985854018
2.452086927252072
39....

result:

ok 10000 numbers

Test #27:

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

input:

10000
6484.027 2686.920 302.591 1902.202 5.835
8201.810 2963.766 412.892 5729.465 8.036
3020.670 211.504 439.339 537.532 8.528
8669.591 8286.396 498.327 1961.743 5.685
7398.433 578.851 211.801 823.970 5.493
689.984 639.947 655.884 425.484 5.438
5785.008 377.037 305.174 5009.622 2.055
3647.568 1584.3...

output:

30.3080626984940018
27.0423645892872671
7.35690207334199719
18.166356629281573
37.6640525776554327
1.12828030566380622
20.1919069121222634
7.71137114330479267
1249.55644801427911
10.9603660045587734
2.92645866672896471
3.79568850929042023
24.8067445311779444
20.5595536943419326
8.56613627553042534
1...

result:

ok 10000 numbers

Test #28:

score: 0
Accepted
time: 34ms
memory: 3852kb

input:

10000
79.843 18.768 777.911 61.283 24.730
8883.631 1902.553 596.364 1892.997 74.484
5024.116 4303.922 72.518 3737.238 46.887
7908.447 2754.154 544.654 5008.230 43.086
7786.323 3377.984 451.639 592.947 59.782
3767.995 1230.199 61.043 2617.153 12.472
2627.587 2190.160 278.163 2257.870 66.853
2168.924 ...

output:

0.126763858590507122
18.0865779959890212
59.3497062798201682
19.5768341001810313
20.6705629999550275
81.8798879478400323
7.87365681273210072
3.77195426732929162
14.8998679989609055
19.7020561324149277
28.2235496596305921
6.45130949372053042
10.0548873403159682
44.2342739958093674
9.82755623078734253...

result:

ok 10000 numbers

Test #29:

score: 0
Accepted
time: 28ms
memory: 3844kb

input:

10000
9542.809 5274.877 0.956 5222.401 0.731
4232.306 2434.616 0.649 2460.142 0.916
1873.176 897.834 0.350 1697.991 0.195
4744.725 441.897 0.658 2894.314 0.937
5228.307 5108.684 0.485 3294.551 0.055
5478.150 4412.917 0.525 1664.207 0.234
4102.027 2600.457 0.078 873.996 0.568
431.474 170.484 0.627 40...

output:

5910.27086183310348
2769.93836671802683
4322.82162162162149
3782.88193519751394
11026.6597938144296
8896.07398753893722
8760.60387323943542
392.625502008032072
1483.14139693356015
405.09930069930067
26164.4669603524198
5774.7469492613991
5941.83280757097782
495.720720720720635
1641.21001390820584
14...

result:

ok 10000 numbers

Test #30:

score: 0
Accepted
time: 33ms
memory: 3888kb

input:

10000
616.297 555.460 2.712 474.476 9.362
2168.839 71.552 7.223 970.694 8.902
7964.311 6380.675 4.152 5635.978 6.625
9607.475 3434.832 7.253 1584.385 0.592
5799.614 5169.057 4.596 3833.295 0.230
7720.882 390.768 8.103 7324.917 3.768
5649.791 5069.866 2.370 105.385 1.825
5422.928 3232.441 7.452 4538....

output:

57.7506211694550302
140.596068185711829
850.713660377358337
1798.1948159382323
1399.0798520452563
716.672142195265678
1510.15518474374244
433.768250134192101
470.063747860810111
383.709413216649693
213.003993037780248
3738.68667007150134
1640.15519920881593
1232.96504112808452
796.381819073783277
41...

result:

ok 10000 numbers

Test #31:

score: 0
Accepted
time: 28ms
memory: 3916kb

input:

10000
3175.823 2209.793 82.310 1567.313 98.952
2827.194 499.952 3.540 1286.031 72.053
7329.159 2813.118 2.508 4244.383 27.919
8594.610 4029.204 23.857 8321.213 31.852
5962.615 5857.484 39.588 4384.499 70.911
3645.911 3134.350 54.596 3338.925 52.037
6012.818 4856.771 25.465 754.753 27.901
3172.603 10...

output:

21.0651046551400718
57.086103285081812
373.005301049464435
168.889801735339717
61.8310135239948551
57.4098835079492957
148.476895401566566
37.5941708601180906
80.8934433382786295
58.933579901081103
33.0109380689616501
111.485338285530872
31.5121728630798508
43.9424907213464166
23.7337408834716221
46...

result:

ok 10000 numbers

Test #32:

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

input:

10000
4197.462 512.718 652.359 4141.106 467.865
5109.145 3908.285 532.258 3918.179 760.827
2270.950 1917.740 686.288 1636.492 692.151
7140.163 1720.169 130.377 3485.891 646.676
8529.796 647.634 488.630 187.430 402.587
5060.451 1839.250 299.785 2550.323 471.767
3291.054 1406.512 422.556 2025.605 660....

output:

4.25498471734224637
5.14989478554257385
2.36435691055853381
13.1938071899184646
16.1311462660909051
7.48040831985400789
3.61078411093093798
15.4496177245588076
9.81720004648511591
10.6788612262167799
15.7799214147690883
13.737164938567819
0.289496897641508766
17.0491182012945046
5.5276902918871853
9...

result:

ok 10000 numbers

Test #33:

score: 0
Accepted
time: 26ms
memory: 3860kb

input:

10000
6491.440 263.052 0.612 4463.729 0.057
8416.331 2796.304 0.010 4069.752 0.561
9945.956 4364.938 0.183 2796.397 0.971
1610.200 955.609 0.311 744.558 0.254
4549.143 692.713 0.608 4294.098 0.216
4420.735 1586.324 0.793 2885.942 0.668
2600.062 905.998 0.673 1208.863 0.518
6302.317 1143.434 0.967 36...

output:

11036.7516339869253
22256.8324420677309
13122.917610710605
3223.45309734513285
6670.99635922330071
3915.36824093086943
2517.18276374442712
5334.9358841778685
2742.95673671198983
2157.26916802610049
4920.54580896686093
5747.79092920353833
4218.09461077844207
23296.6134831460658
4009.67667044167592
91...

result:

ok 10000 numbers

Test #34:

score: 0
Accepted
time: 25ms
memory: 3864kb

input:

10000
5814.653 4387.399 8.508 2017.157 7.579
6595.988 920.952 3.117 117.566 5.086
8638.418 6297.549 9.225 2726.041 5.342
8734.179 1039.937 0.001 1872.197 1.970
4615.143 2153.007 5.456 1176.554 4.631
9570.635 2272.548 7.278 5343.475 7.017
6881.313 6797.896 4.491 6728.005 0.625
1923.466 1483.809 4.916...

output:

506.877698719251896
1273.77546205269346
808.36133994620036
5383.94720812182641
554.336869237632527
884.334522560335813
1513.67089735025593
179.888345490716176
646.410598252296722
376.259458864936107
65.7845163629770582
1243.60807209036648
1179.41144478600108
306.920275323830651
24.2512851527063837
2...

result:

ok 10000 numbers

Test #35:

score: 0
Accepted
time: 24ms
memory: 3904kb

input:

10000
6027.310 5182.885 36.334 1603.878 34.613
7365.488 4336.309 45.531 7230.661 11.569
9564.388 2648.221 82.713 6012.244 63.135
6988.888 3128.278 35.234 3564.273 47.380
8848.165 1805.102 56.693 4783.225 20.663
8277.878 6188.089 37.845 4542.273 83.559
27.775 17.267 41.560 6.784 95.735
5979.300 436.5...

output:

113.15696162414595
155.300368434082344
88.6430461850693945
89.8743917495824007
187.911505829643886
81.7410793713551556
0.252839268527430161
98.1853913227849802
21.5910025854639436
82.168382542739721
13.1369926703861708
38.3702436008974743
10.8072496113145071
18.0654257468415835
19.7331999905318725
1...

result:

ok 10000 numbers

Test #36:

score: 0
Accepted
time: 31ms
memory: 3968kb

input:

10000
2192.374 568.292 888.021 955.204 749.264
603.894 517.819 271.774 122.537 28.760
2287.769 1998.099 812.993 1256.575 86.429
4978.016 2976.499 978.610 2847.919 532.226
7765.964 695.995 338.383 4706.174 875.771
7285.311 2898.545 564.010 6976.814 454.021
7785.744 4775.283 114.582 4118.970 499.754
2...

output:

1.65118035832496912
2.53876014629802693
3.1703089694499198
4.00224152897453234
8.92998234502623767
8.34825875716346744
22.9163108249258585
1.9358475274048601
7.20063658586813382
3.62103890904798265
5.91978342470361341
0.945587102593246187
14.2957447681956076
3.24648049568025066
12.8649568816130131
1...

result:

ok 10000 numbers

Test #37:

score: 0
Accepted
time: 36ms
memory: 3952kb

input:

10000
2020.668 1663.741 0.698 1285.586 629.089
4539.473 4160.328 0.704 260.728 176.842
7007.399 5441.320 0.365 4050.391 466.298
9314.056 6905.604 0.059 5053.649 331.377
3829.895 1143.108 0.071 568.724 325.918
4244.209 2163.188 0.739 1853.569 236.974
2807.981 1079.306 0.361 170.316 687.958
9004.878 2...

output:

4.38054075019591682
27.1440099071487495
21.3691823683567144
40.9638055749191921
13.4960910413048651
25.7318439997636865
4.32918433974167005
17.6504690395305737
10.0711515414824877
26.8877190024505524
14.1693136211578175
29.2915112921423528
10.3118388137415788
1.82006503340921166
11.5658552043943565
...

result:

ok 10000 numbers

Test #38:

score: 0
Accepted
time: 28ms
memory: 3872kb

input:

10000
3717.972 3142.967 5.931 2429.240 170.491
2908.706 1825.965 8.312 962.852 417.840
7613.768 5226.429 5.643 799.607 753.933
9492.108 4544.976 9.432 4840.440 539.737
19.246 0.358 5.839 11.131 738.263
3815.529 2623.704 6.269 375.970 34.841
3329.533 1411.036 3.480 2589.723 863.745
578.480 179.346 0....

output:

29.3663829762274808
9.26564713766034842
11.1593138912874199
26.2049405543811176
0.0370613182565020724
120.303636520191702
4.71127821289848203
2.84141368575729025
7.50730345159386392
0.902326050832122473
6.11046667932552001
4.15195603861515306
5.80899030893815471
3.51037958233666769
147.9809475663122...

result:

ok 10000 numbers

Test #39:

score: 0
Accepted
time: 26ms
memory: 3908kb

input:

10000
8537.609 410.814 41.414 4477.344 937.332
5963.377 3364.450 58.406 4889.028 668.640
9878.651 9139.894 33.339 2125.915 801.525
9132.595 2105.145 10.521 7889.568 151.624
6517.774 4769.229 19.831 2777.674 86.571
1362.331 286.311 26.347 730.377 565.421
1935.462 1698.608 50.307 531.715 326.010
2338....

output:

12.8778447114981827
10.5254337162000482
14.9771572939084834
68.4299451274204529
88.1723059855781344
3.52707982193798841
6.68847986764000346
3.61521311730698081
17.4335100327308936
234.548335637562474
65.260394653308623
22.8365384615384599
18.4068084303833253
12.1357733603331521
16.3099994117919387
1...

result:

ok 10000 numbers

Test #40:

score: 0
Accepted
time: 20ms
memory: 3716kb

input:

10000
9086.117 3389.059 489.165 7338.681 0.860
9665.351 2994.701 384.137 4685.619 0.743
2393.769 564.003 683.751 910.617 0.117
9249.801 5124.267 231.201 5484.051 0.795
1147.773 61.855 370.167 671.487 0.183
2556.588 2488.357 334.094 2294.805 0.212
4419.888 327.523 77.624 529.604 0.473
45.298 35.976 7...

output:

25.503002054521474
32.9571272749045221
4.32580281418235479
57.8515447597544892
3.26778994345795226
7.8565284021862114
61.1590616304235724
0.0772730616656574776
11.2316932963074407
14.3440612185940068
14.043730532553365
7.589586360439327
17.1227112136415691
17.108410996608729
15.7741737525716719
6.33...

result:

ok 10000 numbers

Test #41:

score: 0
Accepted
time: 22ms
memory: 3904kb

input:

10000
7952.115 6398.736 998.438 777.594 9.812
7566.853 1823.315 779.074 940.147 7.810
9017.604 8575.481 4.512 5563.192 9.214
7901.775 1889.838 3.283 5633.071 1.536
1160.786 234.178 148.408 147.537 1.571
9270.991 3202.941 63.612 1105.311 7.810
8404.159 8180.701 329.384 5481.727 1.457
1673.235 938.382...

output:

9.52036480983295696
12.052985980792581
732.331505647548965
2137.06763762034052
9.39952024149641474
159.175338131108049
26.1931878901221573
4.79487715567449246
0.578276802583493454
14.0747454403043513
16.8672900529458438
12.4568017365363435
11.8590161891836718
165.522678475576981
18.2408762973986072
...

result:

ok 10000 numbers

Test #42:

score: 0
Accepted
time: 33ms
memory: 3844kb

input:

10000
6341.185 4082.301 594.696 5937.685 27.398
5248.282 2361.618 605.984 2015.934 27.045
4721.771 2093.972 56.018 4501.895 12.151
3252.822 1067.100 984.173 2815.232 34.818
8594.274 1453.718 12.363 8326.995 25.914
6811.364 6631.455 37.520 750.151 5.005
8432.092 1632.518 780.309 2257.048 69.123
5406....

output:

14.4612861024792494
12.5579223213814188
96.9786105577689028
4.38939292177289886
253.452789331837721
165.311949528390244
12.8982364678608086
9.32313146035789231
21.4562126102048936
8.581933870659741
8.84585528593754411
8.73225910331358079
2.06327283062141431
13.0454914318774069
43.6641193254540525
7....

result:

ok 10000 numbers

Test #43:

score: 0
Accepted
time: 0ms
memory: 3716kb

input:

1
0.002 0.000 1000 0.002 1000

output:

9.99999999999999955e-07

result:

ok found '0.0000010', expected '0.0000010', error '0.0000000'

Extra Test:

score: 0
Extra Test Passed