QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#657520#7005. Rikka with ConsistencyZhangYiDeAC ✓1553ms36836kbC++173.8kb2024-10-19 14:55:242024-10-19 14:55:25

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 10272kb

input:

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

output:

12.128990204491960
22.313624568639948

result:

ok 2 cases

Test #2:

score: 0
Accepted
time: 195ms
memory: 27328kb

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.022744343872647
1873.235902058971664
2645.063883550955659
541.334373575637200
1235.789070575067023
1951.673466582071713
1213.924537986642310
2017.586964700495141
312.764409849808348
3422.789227031027958
138.614373840089232
2149.988607593458793
1046.398399027540138
47.235496542825359
2511.302033...

result:

ok 500 cases

Test #3:

score: 0
Accepted
time: 574ms
memory: 36836kb

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.206597642424787
2006.435281721252545
1567.038925605685564
247.414560115704418
2355.132191397364832
2039.238972205762323
585.478974238961692
1706.290065834044649
2455.778326124428136
1429.668304029658016
386.224743513894022
2328.353187315603240
231.799816853834130
1613.936196696445045
1209.083690...

result:

ok 500 cases

Test #4:

score: 0
Accepted
time: 1553ms
memory: 33700kb

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.183214273577290
24340.101477166197077
4598.013576117175997
35163.594345442837074
19719.494679706962405
24330.979818524221823
17290.096811584820546
31672.450581090091811
30612.789045852057079
21650.286891939607498
26014.044881173541864
10391.561513884478861
25028.333677920775063
36818.649179677...

result:

ok 500 cases