QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#353569#7005. Rikka with ConsistencyqiuzxAC ✓156ms5580kbC++178.1kb2024-03-14 11:16:172024-03-14 11:16:17

詳細信息

Test #1:

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

input:

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

output:

12.128990204491959
22.313624568639948

result:

ok 2 cases

Test #2:

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

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.022744343873910
1873.235902058972442
2645.063883550955325
541.334373575637073
1235.789070575066944
1951.673466582072024
1213.924537986642463
2017.586964700495628
312.764409849808374
3422.789227031026257
138.614373840089229
2149.988607593458710
1046.398399027540790
47.235496542825359
2511.302033...

result:

ok 500 cases

Test #3:

score: 0
Accepted
time: 156ms
memory: 5580kb

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.206597642424640
2006.435281721252750
1567.038925605686018
247.414560115704290
2355.132191397365204
2039.238972205761456
585.478974238961428
1706.290065834044071
2455.778326124427622
1429.668304029658202
386.224743513894055
2328.353187315602554
231.799816853833988
1613.936196696445450
1209.083690...

result:

ok 500 cases

Test #4:

score: 0
Accepted
time: 80ms
memory: 4864kb

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.183214273583872
24340.101477166186669
4598.013576117175944
35163.594345442870690
19719.494679706953320
24330.979818524188886
17290.096811584815441
31672.450581090051855
30612.789045852012350
21650.286891939609632
26014.044881173511385
10391.561513884473243
25028.333677920774790
36818.649179677...

result:

ok 500 cases