QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#616833#7005. Rikka with Consistencyucup-team4744AC ✓213ms3932kbC++142.7kb2024-10-06 12:20:192024-10-06 12:20:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

12.1289902045
22.3136245686

result:

ok 2 cases

Test #2:

score: 0
Accepted
time: 39ms
memory: 3780kb

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.02274434
1873.23590206
2645.06388355
541.334373576
1235.78907058
1951.67346658
1213.92453799
2017.5869647
312.76440985
3422.78922703
138.61437384
2149.98860759
1046.39839903
47.2354965428
2511.30203336
60.533937889
87.7918204661
2535.3037068
13.6251184001
1041.33327922
1558.27609015
325.7172036...

result:

ok 500 cases

Test #3:

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

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.206597642
2006.43528172
1567.03892561
247.414560116
2355.1321914
2039.23897221
585.478974239
1706.29006583
2455.77832612
1429.66830403
386.224743514
2328.35318732
231.799816854
1613.9361967
1209.08369042
933.491159568
1443.04737311
2567.83625125
1821.03639417
2732.61276334
3031.02662477
1642.503...

result:

ok 500 cases

Test #4:

score: 0
Accepted
time: 111ms
memory: 3900kb

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.1832143
24340.1014772
4598.01357612
35163.5943454
19719.4946797
24330.9798185
17290.0968116
31672.4505811
30612.7890459
21650.2868919
26014.0448812
10391.5615139
25028.3336779
36818.6491797
29255.2609755
24770.6063189
17962.412629
21344.1192912
19567.6472111
21648.5426409
36241.9154824
28841.8...

result:

ok 500 cases