QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#549258#7005. Rikka with Consistencyucup-team1005#AC ✓422ms4216kbC++207.8kb2024-09-06 13:28:102024-09-06 13:28:10

詳細信息

Test #1:

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

input:

2
4
0 1 1 2 0
4
0 2 1 3 0

output:

12.128990204492
22.313624568640

result:

ok 2 cases

Test #2:

score: 0
Accepted
time: 56ms
memory: 4216kb

input:

500
34
0 12 2 25 18 11 17 7 24 20 19 18 34 26 14 15 11 16 3 19 6 21 34 33 12 6 29 10 27 22 5 7 7 25 0
40
0 18 15 11 15 10 9 26 34 13 35 12 27 36 33 3 7 28 6 24 12 30 38 39 14 14 12 13 24 35 28 35 11 22 19 39 8 6 18 3 0
43
0 25 1 23 21 5 16 36 22 3 31 34 9 3 41 17 11 39 22 0 16 39 15 10 8 33 24 21 20...

output:

1906.022744343873
1873.235902058972
2645.063883550956
541.334373575637
1235.789070575067
1951.673466582072
1213.924537986642
2017.586964700495
312.764409849808
3422.789227031028
138.614373840089
2149.988607593459
1046.398399027540
47.235496542825
2511.302033358896
60.533937888997
87.791820466066
253...

result:

ok 500 cases

Test #3:

score: 0
Accepted
time: 422ms
memory: 4180kb

input:

500
43
0 6 6 1 1 1 6 1 1 5 1 5 6 5 6 1 5 5 6 6 5 5 6 1 5 6 1 6 5 5 5 6 6 6 1 1 6 6 5 1 5 6 1 0
50
0 18 39 18 28 18 18 18 28 47 28 28 48 8 8 39 48 8 39 19 47 19 19 18 48 20 28 28 18 20 20 39 48 8 8 39 48 20 20 20 8 8 18 19 8 8 8 18 8 48 0
43
0 25 29 25 44 32 32 50 50 32 29 44 25 25 25 25 32 44 29 24 ...

output:

252.206597642425
2006.435281721253
1567.038925605686
247.414560115704
2355.132191397365
2039.238972205762
585.478974238962
1706.290065834045
2455.778326124428
1429.668304029658
386.224743513894
2328.353187315603
231.799816853834
1613.936196696445
1209.083690420000
933.491159568378
1443.047373112322
...

result:

ok 500 cases

Test #4:

score: 0
Accepted
time: 166ms
memory: 4168kb

input:

500
42
0 27 22 28 20 31 17 33 14 34 13 35 11 42 8 44 4 49 2 50 1 23 3 47 5 46 7 43 9 41 10 38 12 36 16 32 18 30 19 29 23 23 0
44
0 23 23 27 20 32 18 36 15 38 11 44 8 45 6 47 4 48 3 23 1 50 5 46 7 43 9 42 12 41 13 40 14 37 16 35 17 33 19 31 21 29 22 28 0
48
0 48 3 46 5 44 7 41 9 39 11 37 13 35 15 32 ...

output:

19134.183214273577
24340.101477166197
4598.013576117176
35163.594345442837
19719.494679706962
24330.979818524221
17290.096811584820
31672.450581090093
30612.789045852057
21650.286891939607
26014.044881173542
10391.561513884479
25028.333677920775
36818.649179677423
29255.260975468494
24770.6063188676...

result:

ok 500 cases