QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#612222#8022. WalkerLJY_ljyAC ✓21ms3952kbC++111.6kb2024-10-05 09:28:022024-10-05 09:28:03

Judging History

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

  • [2024-10-05 09:28:03]
  • 评测
  • 测评结果:AC
  • 用时:21ms
  • 内存:3952kb
  • [2024-10-05 09:28:02]
  • 提交

answer

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;

const double eps = 1e-7;
const double INF = 1e10;
double n, p1, v1, p2, v2;

int main() {
	int t; scanf("%d", &t);
	for (int u = 1; u <= t; u++) {
		scanf("%lf %lf %lf %lf %lf", &n, &p1, &v1, &p2, &v2);
		if (p1 > p2) {
			swap(p1, p2);
			swap(v1, v2);
		}
		double l = 0, r = INF;
		while (r - l > eps) {
			double mid = (r + l) / 2;
			double S1 = mid * v1, S2 = mid * v2;
			bool flag = false;
			// LL
			if (S1 < p1 && S2 >= p2 + n) flag = true;
			if (p1 <= S1 && S1 < 2 * p1 && S2 >= p2 - p1 + n - p1) flag = true;
			if (2 * p1 <= S1 && S1 < p1 + p2 && S1 + S2 >= n + p2 + 2 * p1 - S1) flag = true;
			// RR
			if (S2 < n - p2 && S1 >= 2 * n - p1) flag = true;
			if (n - p2 <= S2 && S2 < 2 * (n - p2) && S1 >= p2 - p1 + p2) flag = true;
			if (2 * (n - p2) <= S2 && S2 < 2 * n - p1 - p2 && S1 + S2 >= n + n - p2 - p2 - p1 - S2 + 2 * n) flag = true;
			// LR
			if (S1 >= n + p1) flag = true;
			if (S1 >= p1 + p2 && S1 < n + p1 && S2 >= n - p2) flag = true;
			if (S1 >= 2 * p1 && S1 < p1 + p2 && S1 + S2 >= 2 * n + p1 - p2) flag = true;
			if (p1 <= S1 && S1 < 2 * p1 && S2 >= 2 * n - p1 - p2) flag = true;
			if (S1 < p1 && S2 >= 2 * n - p2) flag = true;
			// RL
			if (S2 <= p2 && S1 >= 2 * n - p1) flag = true;
			if (p2 < S2 && S2 <= p2 + n && S1 >= n - p1) flag = true;
			if (S2 >= p2 + n) flag = true;
			if (S1 >= p1 && S2 >= n - p2 && S1 + S2 >= n + p2 - p1) flag = true;
			if (flag) r = mid;
			else l = mid;
		}
		printf("%.10lf\n", l);
	}
	return 0;
} 

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

詳細信息

Test #1:

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

input:

2
10000.0 1.0 0.001 9999.0 0.001
4306.063 4079.874 0.607 1033.423 0.847

output:

5000999.9999999627
3827.8370013273

result:

ok 2 numbers

Test #2:

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

input:

1
10.0 1.0 10.0 9.0 0.1

output:

1.0999999522

result:

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

Test #3:

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

input:

1
10.0 8.0 10.0 9.0 0.1

output:

1.1999999605

result:

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

Test #4:

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

input:

1
10.0 8.0 0.1 9.0 10

output:

1.0999999522

result:

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

Test #5:

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

input:

1
10.0 2.0 0.1 3.0 10

output:

1.2999999688

result:

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

Test #6:

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

input:

1
10.0 9.0 0.1 8.0 10.0

output:

1.1999999605

result:

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

Test #7:

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

input:

1
10.0 4.0 0.1 6.0 0.1

output:

59.9999999684

result:

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

Test #8:

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

input:

1
10.0 4.5 0.1 6.0 0.1

output:

57.4999999697

result:

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

Test #9:

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

input:

1
10.0 1.0 1.0 8.0 1.0

output:

6.4999999827

result:

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

Test #10:

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

input:

1
10.0 3.0 2.0 7.0 1.0

output:

4.5999999643

result:

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

Test #11:

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

input:

1
10.0 6.0 2.0 7.0 1.0

output:

3.6666666231

result:

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

Test #12:

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

input:

1
10.0 1.0 1.0 9.0 1.0

output:

5.9999999413

result:

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

Test #13:

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

input:

1
10000.0 1.0 0.001 1.0 0.001

output:

9998999.9999999814

result:

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

Test #14:

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

input:

1
10.0 5.0 1.0 5.0 1.5

output:

4.9999999974

result:

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

Test #15:

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

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.8370013273
7999.3649921423
12559.3358024645
15371.5507020258
2637.6985194643
9931.0415174747
934.4943011080
2939.1796246142
5754.0328898126
2847.4271569767
10975.3236281901
2180.2786069614
23747.0454544919
6278.1035548021
872.3977055342
10734.3956442379
1005.0770288261
20225.1630900679
9878.009...

result:

ok 10000 numbers

Test #16:

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

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.6783166227
364.0773883762
310.4378732549
186.4660394840
294.4116222342
178.5241121599
193.4820604427
556.8327911265
1413.5636949852
403.2302259455
743.5915085757
396.6288208979
209.1301146839
611.2850655521
4769.7810675457
631.1755286481
679.6039910689
2239.7925147216
672.2264896813
652.93272143...

result:

ok 10000 numbers

Test #17:

score: 0
Accepted
time: 16ms
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.8507395460
201.2720341782
34.9703651453
49.1029963912
47.4635210301
138.8941887892
35.2689723954
38.4675707954
75.2072899096
101.6259555675
25.9441883949
21.0079176277
82.0515901750
99.5775285145
27.5829436375
197.4629545987
44.7046984153
62.4887210726
23.4730344190
54.7400724055
6.2620342245
146...

result:

ok 10000 numbers

Test #18:

score: 0
Accepted
time: 15ms
memory: 3876kb

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.7201973313
9.9889753413
11.5902158704
6.3974939929
5.4775015773
2.7516817297
6.4463382549
0.9512955007
6.0518749734
2.5075291149
4.3790838317
11.4347564056
3.9997969520
54.4577154898
36.4774247613
5.9521376022
6.6059484272
8.1824034354
1.9385467537
7.1519248163
8.6850750897
18.8098033677
30.845506...

result:

ok 10000 numbers

Test #19:

score: 0
Accepted
time: 17ms
memory: 3876kb

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.2859648847
8093.8193641050
16570.5060975463
7611.1305482435
2363.0025444699
11961.9881656236
10054.8597484207
6132.8709677344
1324.9770190044
8439.4677685867
4670.2766155066
1876.1061359313
6135.1322410558
3193.4616998713
23257.1384615327
3276.5638655063
9436.1980830515
8553.5888888488
20206.18...

result:

ok 10000 numbers

Test #20:

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

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.5566282105
67.2009049102
994.7382591247
9.7245345804
449.1890704533
287.2773957607
1233.4515567952
855.7122125469
2917.1817029355
663.2016368718
738.7614570781
624.3502280456
657.3975210034
267.8066338135
2696.9339884247
514.5219452579
1528.5089016714
304.0120881426
1157.4182758045
201.9795102004...

result:

ok 10000 numbers

Test #21:

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

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.3169072333
123.1759218234
53.1503734774
116.1277690676
73.7923069177
92.1324654762
37.6136392172
86.2723400358
320.4975965870
1.9902869630
112.7438899878
90.4635627519
229.1529435650
186.1792362640
58.1992990606
73.7045810495
1.9218597547
12.9163305745
15.0603344379
91.3101190492
61.1469818529
1...

result:

ok 10000 numbers

Test #22:

score: 0
Accepted
time: 15ms
memory: 3792kb

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.3114140436
2.2882756107
17.2180775193
3.9086400089
13.5448037508
2.5598764775
1.4198353604
5.3973025355
13.3497415900
0.2130651905
54.1352929151
6.1649760991
20.9924590211
4.3254401449
50.7486967727
3.7774086636
6.6961041573
4.4566841190
1.3908375840
7.3975738729
3.8966240651
2.9823538777
9.350987...

result:

ok 10000 numbers

Test #23:

score: 0
Accepted
time: 15ms
memory: 3884kb

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.0060946850
22.6337599357
8.1028710130
132.4293334715
18.3318315389
45.2211296187
3.9478414982
7.1355181486
138.2265143318
14.8960994928
20.8294551052
80.1683239932
2.9149411357
4.0137527330
0.3429218021
14.4081015868
15.1378937857
10.4630130948
17.5834779376
24.4874048122
4.4768523610
11.6301181...

result:

ok 10000 numbers

Test #24:

score: 0
Accepted
time: 15ms
memory: 3812kb

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.1894861325
5.7257175390
16.1818285854
2.5691100636
8.3066961643
1.1687948526
1.4063272075
12.4310169103
25.3811249101
4.5045977365
11.2413296033
30.9834258250
4.3419417367
6.8485844773
48.9494467182
10.8561503537
12.8835706686
32.0725469793
411.7740675519
4.4575566849
26.3959017838
8.5662128085
4....

result:

ok 10000 numbers

Test #25:

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

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.2730887099
20.1121017757
2.0849390964
11.8079287320
0.7941641789
6.7678769533
9.2644815430
13.5025272213
14.3931561808
11.1027956967
15.5042345629
69.7253074722
12.4881770203
58.7459714901
13.7961616437
44.5557707396
18.9877775308
0.9213809576
22.5461661840
4.8063528851
42.2640162451
35.182513777...

result:

ok 10000 numbers

Test #26:

score: 0
Accepted
time: 11ms
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.6670688522
47.8010205723
10.6281918683
37.5206977293
12.5226295306
44.8612139797
5.3644192560
7.3879658641
8.2277919200
111.0668174792
6.3279229079
13.9915293934
8.4491529745
0.1947831479
2.4520868669
39.4147427196
2.0923116711
5.1590717809
4.6711685908
0.2271818844
1.2380223235
6.1513891203
465....

result:

ok 10000 numbers

Test #27:

score: 0
Accepted
time: 15ms
memory: 3792kb

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.3080626568
27.0423645282
7.3569020320
18.1663566134
37.6640525712
1.1282802470
20.1919068965
7.7113711250
1249.5564479659
10.9603659482
2.9264586587
3.7956884857
24.8067445058
20.5595536429
8.5661362725
12.5910717269
1.2047478293
5.0782727329
3.6973763634
109.6287138846
12.4818851782
61.173921206...

result:

ok 10000 numbers

Test #28:

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

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.1267638078
18.0865779298
59.3497062606
19.5768340427
20.6705629696
81.8798879393
7.8736567960
3.7719542073
14.8998679367
19.7020560977
28.2235496085
6.4513094866
10.0548873394
44.2342739521
9.8275561994
30.8955112188
12.4307927146
0.2041779246
2.5592959002
4.0743497465
1.4590807035
9.6788741605
4....

result:

ok 10000 numbers

Test #29:

score: 0
Accepted
time: 17ms
memory: 3792kb

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.2708618169
2769.9383666618
4322.8216215635
3782.8819351299
11026.6597937864
8896.0739875327
8760.6038731702
392.6255019715
1483.1413969185
405.0993006322
26164.4669603128
5774.7469492386
5941.8328075128
495.7207206530
1641.2100138641
14621.4217442570
2391.5873959002
14584.1925465462
11730.97331...

result:

ok 10000 numbers

Test #30:

score: 0
Accepted
time: 16ms
memory: 3880kb

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.7506211602
140.5960681211
850.7136603497
1798.1948158968
1399.0798520408
716.6721421870
1510.1551847224
433.7682500688
470.0637478566
383.7094132014
213.0039929854
3738.6866700434
1640.1551991563
1232.9650411064
796.3818190321
41.4511099056
165.5188615335
468.0533480239
98.5302810869
2269.1268476...

result:

ok 10000 numbers

Test #31:

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

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.0651045912
57.0861032750
373.0053010215
168.8898017271
61.8310135037
57.4098834444
148.4768953619
37.5941708319
80.8934433327
58.9335798912
33.0109380109
111.4853382528
31.5121728017
43.9424906878
23.7337408754
462.1215073108
36.5172408978
75.5613158154
28.7363280393
10.9170674584
27.3935418099
6...

result:

ok 10000 numbers

Test #32:

score: 0
Accepted
time: 15ms
memory: 3948kb

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.2549846979
5.1498947468
2.3643569047
13.1938071579
16.1311462105
7.4804083067
3.6107841023
15.4496176963
9.8172000390
10.6788611981
15.7799213973
13.7371648778
0.2894968293
17.0491181589
5.5276902500
9.3884736097
10.5670324574
7.5954242895
7.9270107839
5.8739903219
11.0699733408
5.7610569787
23.54...

result:

ok 10000 numbers

Test #33:

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

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.7516339277
22256.8324420580
13122.9176107001
3223.4530972924
6670.9963592038
3915.3682408755
2517.1827636866
5334.9358841714
2742.9567366760
2157.2691680238
4920.5458089313
5747.7909291836
4218.0946107501
23296.6134831175
4009.6766704134
9100.8038276968
4840.4905660104
1858.2185725563
5063.415...

result:

ok 10000 numbers

Test #34:

score: 0
Accepted
time: 16ms
memory: 3808kb

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.8776987027
1273.7754620518
808.3613398796
5383.9472080597
554.3368691852
884.3345225551
1513.6708973046
179.8883454696
646.4105982429
376.2594587980
65.7845163066
1243.6080720768
1179.4114447572
306.9202753059
24.2512851467
21.9867724721
96.3221351985
544.7804638653
314.1362496517
533.3145921410...

result:

ok 10000 numbers

Test #35:

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

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.1569615787
155.3003683985
88.6430461672
89.8743917482
187.9115058001
81.7410793219
0.2528392079
98.1853912757
21.5910025275
82.1683825147
13.1369926049
38.3702435797
10.8072496091
18.0654256832
19.7331999352
107.4998848966
63.7193058733
92.6805010515
98.2772210140
196.1639706227
78.8303268495
11...

result:

ok 10000 numbers

Test #36:

score: 0
Accepted
time: 15ms
memory: 3880kb

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.6511803036
2.5387601049
3.1703089459
4.0022415243
8.9299823092
8.3482587510
22.9163107934
1.9358475239
7.2006365454
3.6210388854
5.9197834135
0.9455870809
14.2957447269
3.2464804456
12.8649568776
14.9498011887
0.3276764970
1.6932180658
7.2087491532
2.2284311202
6.0103625549
12.0410245663
5.7480067...

result:

ok 10000 numbers

Test #37:

score: 0
Accepted
time: 11ms
memory: 3884kb

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.3805407218
27.1440098870
21.3691823264
40.9638055421
13.4960909809
25.7318439473
4.3291843027
17.6504690030
10.0711514822
26.8877189957
14.1693135697
29.2915112304
10.3118388134
1.8200650015
11.5658551486
9.5755606916
60.7635098487
25.2976069953
9.7861445336
14.7658121147
9.4454512961
12.235204377...

result:

ok 10000 numbers

Test #38:

score: 0
Accepted
time: 21ms
memory: 3896kb

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.3663829365
9.2656470690
11.1593138896
26.2049405092
0.0370612568
120.3036364972
4.7112781731
2.8414136322
7.5073033901
0.9023259917
6.1104666466
4.1519560012
5.8089903027
3.5103795565
147.9809475652
76.0634433217
21.0343076290
2.8252212375
3.7702594519
3.1089861241
54.4751009579
11.2506650524
2.1...

result:

ok 10000 numbers

Test #39:

score: 0
Accepted
time: 19ms
memory: 3880kb

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.8778446934
10.5254336497
14.9771572922
68.4299451131
88.1723059842
3.5270798088
6.6884798394
3.6152130595
17.4335099828
234.5483356148
65.2603945883
22.8365384242
18.4068083692
12.1357733585
16.3099993927
18.5668604796
16.2841514578
12.6093423203
2.6661756136
0.9892295316
8.8203871290
0.446706005...

result:

ok 10000 numbers

Test #40:

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

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.5030020019
32.9571272356
4.3258027715
57.8515447353
3.2677899275
7.8565283446
61.1590615651
0.0772730491
11.2316932838
14.3440612166
14.0437304841
7.5895863205
17.1227111656
17.1084109379
15.7741737034
6.3334970601
0.6272564412
8.2734777362
17.0520873116
43.3266685029
32.6070258988
12.0741673604
...

result:

ok 10000 numbers

Test #41:

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

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.5203647743
12.0529859704
732.3315056457
2137.0676375754
9.3995201900
159.1753381186
26.1931878270
4.7948771342
0.5782768014
14.0747453969
16.8672899953
12.4568017013
11.8590161302
165.5226784109
18.2408762400
20.9337434193
11.5384067578
0.4221645949
2.8570441846
5.8426121580
3.1859864053
9.3877894...

result:

ok 10000 numbers

Test #42:

score: 0
Accepted
time: 15ms
memory: 3948kb

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.4612860575
12.5579222715
96.9786104893
4.3893928769
253.4527893117
165.3119494766
12.8982364372
9.3231314335
21.4562125705
8.5819338441
8.8458552289
8.7322590825
2.0632728165
13.0454914232
43.6641192647
7.0553094617
0.4475065457
15.1639419771
25.8573377293
16.3052030211
188.7109156440
9.469595108...

result:

ok 10000 numbers

Test #43:

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

input:

1
0.002 0.000 1000 0.002 1000

output:

0.0000009714

result:

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

Extra Test:

score: 0
Extra Test Passed