QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#138225#4815. Flower's LandDitaMirikaWA 2ms11064kbC++201.4kb2023-08-11 10:05:062023-08-11 10:05:09

详细

Test #1:

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

input:

5 3
6 10 4 3 4
3 4
4 2
2 5
5 1

output:

20 20 17 17 20

result:

ok 5 number(s): "20 20 17 17 20"

Test #2:

score: 0
Accepted
time: 2ms
memory: 10040kb

input:

7 4
1 3 2 1 7 12 17
4 6
1 4
5 1
2 5
7 6
3 2

output:

31 13 13 31 21 31 31

result:

ok 7 numbers

Test #3:

score: 0
Accepted
time: 2ms
memory: 11064kb

input:

1 1
20

output:

20

result:

ok 1 number(s): "20"

Test #4:

score: 0
Accepted
time: 0ms
memory: 10020kb

input:

10 3
19 7 25 18 93 97 21 51 60 80
6 7
7 1
1 9
9 10
10 2
2 5
5 3
3 8
8 4

output:

159 180 169 94 180 137 137 169 159 180

result:

ok 10 numbers

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 10468kb

input:

20 3
932 609 248 720 831 253 418 482 1000 542 436 304 217 163 872 380 704 845 497 610
17 12
1 17
15 17
13 17
2 15
16 2
18 16
8 16
4 16
19 4
6 4
20 19
10 19
9 10
5 10
7 9
3 9
14 5
11 7

output:

2508 2185 1790 1945 2373 1470 1960 1707 2373 2373 1854 1940 1853 1926 2508 1945 2508 2062 2048 2152

result:

wrong answer 14th numbers differ - expected: '1536', found: '1926'