QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#883878#8240. Card GameLittle_PenguinRE 5ms10132kbC++141.8kb2025-02-05 19:36:142025-02-05 19:36:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 5
3 3 1 1 1
5 5
3 4
3 3
0 5
3 5

output:

1
2
1
0
1

result:

ok 5 number(s): "1 2 1 0 1"

Test #2:

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

input:

7 7
2 4 1 2 3 1 2
1 6
0 4
3 3
0 4
0 3
0 6
2 7

output:

2
1
1
1
2
3
0

result:

ok 7 numbers

Test #3:

score: 0
Accepted
time: 5ms
memory: 10132kb

input:

10000 10000
160 120 157 1393 1368 911 449 735 662 698 480 730 1184 768 1291 1012 834 61 1925 642 1401 1681 441 367 1498 1215 1969 1895 857 304 400 524 1138 846 810 885 68 1737 199 90 321 1109 980 1097 1936 1482 753 1796 1787 1939 291 1201 1025 367 980 1785 1781 276 1774 777 861 967 1428 1060 1300 32...

output:

8
31
35
76
35
9
63
27
30
38
72
22
133
45
71
92
22
49
25
47
56
30
32
87
90
31
50
56
76
108
69
60
56
90
104
59
107
40
53
46
50
82
92
20
34
85
90
8
36
58
74
66
72
7
47
16
33
52
17
28
51
16
51
41
61
139
45
34
23
43
25
40
81
30
93
134
61
61
77
78
63
14
46
86
35
115
16
32
27
67
78
22
13
25
69
18
30
22
93
...

result:

ok 10000 numbers

Test #4:

score: -100
Runtime Error

input:

300000 300000
247458 294756 90122 232046 27674 270860 146526 49400 98719 7831 68724 276111 113048 4028 56028 219364 188447 275016 284924 189020 57763 150969 208171 148849 58503 250276 15479 72273 299297 165871 20928 195677 130684 192311 298330 268331 83030 298060 35631 209221 170402 38800 53211 6839...

output:


result: