QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#506341#6423. FireworksksksjdTL 4ms4000kbC++14744b2024-08-05 16:50:142024-08-05 16:50:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1 1 5000
1 1 1
1 2 10000

output:

4.00000000
10141.58528911
3.00000000

result:

ok 3 numbers

Test #2:

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

input:

20
10 27 2855
79 59 6888
65 72 7725
78 50 2888
31 21 5759
41 58 6619
47 27 3881
35 55 5095
77 7 6028
17 89 1792
84 60 8604
58 44 4923
88 27 3824
54 63 1482
19 42 5366
93 76 97
100 99 8660
96 36 4343
90 56 9515
24 44 9922

output:

89.72980565
200.34843206
177.34627832
416.83987780
90.29345372
149.56942136
190.67250709
164.60152112
139.34970139
275.13311025
167.36401674
207.19073736
300.73221757
589.05884895
101.87702821
10796.88726690
229.79214781
303.93737048
153.44193379
68.53456964

result:

ok 20 numbers

Test #3:

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

input:

10
954269343 987322500 9806
916720797 981711601 9728
902477101 957414437 9250
967013471 988735825 9674
985383693 926528961 9411
970653208 917703218 9331
998423148 911924940 9283
986159007 902133513 9759
953796828 947934512 9959
995334734 931874197 9944

output:

1980003919.02916576
1951513567.02302632
2010693554.59459450
2021655257.39094472
2031572260.12113474
2023744964.09816731
2057899480.77130235
1934924193.05256688
1909560538.20664724
1938062078.64038626

result:

ok 10 numbers

Test #4:

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

input:

10
933722894 72 9673
975866948 5 9424
910984544 95 9682
994597175 6 9351
972675086 51 9712
952759975 51 9114
956482031 85 9478
921988922 72 9017
950640658 36 9893
965297247 78 9342

output:

965287879.66504699
1035512471.34974531
940905431.72898166
1063626543.68516731
1001518880.76606265
1045380761.46587669
1009160282.76007599
1022500825.10812915
960922565.45031845
1033287652.53692996

result:

ok 10 numbers

Test #5:

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

input:

10
910088095 81 316
970640211 35 537
908853334 41 89
932269507 8 457
953224740 22 113
959834859 69 34
924852390 63 115
952730384 97 382
917634328 91 20
937287266 32 654

output:

28800258734.17725032
18075237355.67971215
102118356741.57281562
20399770568.92780651
84356173628.31875779
282304390588.23873070
80421952434.78292546
24940588507.85339549
458817209499.99959248
14331610061.16207651

result:

ok 10 numbers

Test #6:

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

input:

10
968675373 962412132 104
923494255 934310785 381
922721350 957856460 282
978335370 917228676 825
951116860 942542480 359
999013758 972493824 676
930242700 964474169 342
968944030 984608304 520
965837594 909045242 369
990484700 925952624 479

output:

106669104052.29462454
31076848077.76109517
40771434362.89514279
16579259543.36353013
33660076568.70191111
20209258011.50192305
34581380127.39510079
24798113234.33294086
33145494087.72825170
26925682159.12007891

result:

ok 10 numbers

Test #7:

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

input:

10
22 972733171 975
22 973609752 512
55 987399854 126
49 967364929 642
23 948126474 513
25 962813818 421
93 933323422 113
58 950364131 647
82 991906690 682
31 957667404 402

output:

972737161.12958392
973616534.95043302
987457697.39677932
967376101.99739128
948133465.25359505
962822814.22977604
933426898.31772820
950377064.79911108
991923706.58539166
957678806.16684357

result:

ok 10 numbers

Test #8:

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

input:

10
47 972371220 9743
65 949941115 9400
86 921812690 9736
11 927065494 9182
71 923766617 9378
63 941828720 9029
96 917539847 9084
88 952051332 9499
91 958386812 9427
64 950375055 9887

output:

972387866.88827857
949953686.39977574
921829909.43434514
927068944.30311057
923780728.07875651
941837164.65233066
917546244.05123950
952057682.10639643
958397507.51863705
950376618.29557141

result:

ok 10 numbers

Test #9:

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

input:

10
98 46 9403
99 89 9661
80 62 9450
25 20 9283
68 74 9328
54 14 9286
4 80 9574
35 61 9420
77 47 9943
22 9 9358

output:

153.14261406
194.59683263
150.26455026
48.47570828
152.22984563
73.22851605
87.73762273
101.91082803
124.71085186
33.12673648

result:

ok 10 numbers

Test #10:

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

input:

10
89 77 65
53 41 913
47 67 488
89 13 267
20 60 427
58 72 690
23 60 677
43 38 775
52 68 343
83 61 805

output:

15149.28383824
795.19595968
1340.26261032
3590.64750473
734.46310782
1204.04404180
568.43253705
761.45344976
1986.66955837
1378.15844834

result:

ok 10 numbers

Test #11:

score: 0
Accepted
time: 4ms
memory: 4000kb

input:

20
5 1000000000 4
3 999999979 5
5 1000000000 2
2 999999999 4
3 999999983 1
3 999999984 1
3 999999987 3
3 999999974 1
2 999999998 1
1 999999981 2
4 999999971 4
3 999999992 1
5 999999973 4
4 999999984 4
3 999999972 4
2 999999994 4
2 999999980 5
4 999999970 5
2 999999980 2
4 999999983 4

output:

1000153595.96684607
1000078103.93771904
1000289896.62138846
1000066017.48627800
1000342407.04346447
1000342408.04349446
1000125100.23510187
1000342398.04319457
1000236387.47266458
1000066005.58994774
1000125078.47762898
1000342416.04373437
1000153568.96650873
1000125091.47775896
1000095959.57388428
...

result:

ok 20 numbers

Test #12:

score: -100
Time Limit Exceeded

input:

10000
15 999999991 6
16 999999975 2
12 999999978 9
7 999999993 4
19 999999980 5
20 999999977 5
13 999999995 10
11 999999979 6
19 999999995 5
6 999999982 10
15 999999978 1
2 999999974 5
12 999999980 4
18 999999997 1
12 999999992 10
20 999999970 6
2 999999999 2
13 999999984 1
16 999999984 2
16 9999999...

output:

1000289834.62743380
1000834644.98037364
1000162916.05442032
1000209141.23876039
1000424660.55730171
1000444958.75894363
1000159181.22236682
1000218214.14908771
1000424675.55787137
1000078088.89709484
1001470863.70831508
1000053678.64908067
1000342357.17155828
1001732290.58973814
1000147893.02516688
...

result: