QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#72039#4815. Flower's Land00WA 3ms8348kbC++142.7kb2023-01-13 18:46:532023-01-13 18:46:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3ms
memory: 6596kb

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: 3ms
memory: 8348kb

input:

1 1
20

output:

20

result:

ok 1 number(s): "20"

Test #4:

score: 0
Accepted
time: 3ms
memory: 6824kb

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: 0
Accepted
time: 2ms
memory: 6724kb

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 1536 2508 1945 2508 1945 2039 1827

result:

ok 20 numbers

Test #6:

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

input:

40 5
1105 1687 737 6321 7793 7325 3443 2983 6912 6304 4211 5325 7774 7857 5121 8331 9317 1042 8291 9698 7373 440 9788 7938 7191 5563 4554 596 9733 4920 5398 3642 844 5733 4048 4417 8279 3054 4596 3153
12 17
12 36
12 15
12 13
12 2
12 30
12 18
12 33
12 4
12 39
12 25
12 20
12 10
12 9
12 23
12 29
12 3
1...

output:

35649 29224 35281 33858 42337 41869 37987 37527 39026 38418 38755 43861 31954 42401 25285 42875 25535 28579 42835 39305 41917 34984 41902 42482 35928 40107 39098 35140 43861 32457 39942 38186 28381 40277 38592 20635 42823 37598 33333 37697

result:

wrong answer 2nd numbers differ - expected: '36231', found: '29224'