QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#884438#8240. Card GameHuluoboWA 418ms239616kbC++142.4kb2025-02-06 08:10:312025-02-06 08:10:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 5844kb

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: 6ms
memory: 12040kb

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
Wrong Answer
time: 418ms
memory: 239616kb

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:

136
1121
700
432
667
1116
520
604
542
601
335
256
177
1419
640
546
759
334
160
1000
24
1070
928
608
496
641
491
459
737
725
716
1078
1258
1062
553
62
258
2001
558
276
801
899
438
429
893
605
427
522
996
276
1161
68
888
868
614
1018
817
578
1014
592
759
218
1042
220
204
167
493
802
1822
267
389
125
8...

result:

wrong answer 1st numbers differ - expected: '801', found: '136'