QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#549291#7013. Rikka with Antsucup-team1005#AC ✓21ms4060kbC++202.8kb2024-09-06 14:01:562024-09-06 14:01:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
5
1 5 2 4 3
1 2 3 4
5
1 5 2 4 3
1 3 2 4

output:

1 2
14.666666666667 14.666666666667

result:

ok 2 cases

Test #2:

score: 0
Accepted
time: 21ms
memory: 4060kb

input:

5000
5
8 22 47 25 13
3 5 3 1
20
9 24 41 8 23 31 48 15 46 5 17 36 29 40 36 43 34 33 29 26
16 4 15 5
3
8 22 33
1 2 2 3
26
18 44 37 21 44 44 5 15 43 44 44 37 19 10 22 14 41 37 42 18 14 34 3 17 30 42
13 2 13 15
26
31 31 41 11 35 49 13 29 33 11 27 6 16 25 47 40 2 33 27 35 35 29 48 35 5 7
17 3 13 3
26
30 ...

output:

72 30
571.628865979381 571.628865979381
8 22
378 29
728.898876404494 728.898876404494
356 103
509.916981132075 509.916981132075
87 63
80 36
157 99
683 100
283 88
967 769
216 626
424.075294117647 424.075294117647
639 152
179 122
687.912568306011 687.912568306011
62.857142857143 62.857142857143
565 51...

result:

ok 5000 cases