QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#745026#7900. Gifts from Knowledgeucup-team057RE 4ms28472kbC++172.6kb2024-11-14 01:28:492024-11-14 01:28:50

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 28472kb

input:

3
3 5
01100
10001
00010
2 1
1
1
2 3
001
001

output:

4
0
2

result:

ok 3 number(s): "4 0 2"

Test #2:

score: -100
Runtime Error

input:

15613
10 10
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
15 8
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
1 5
00000
5 9
000000000
000000000
0000...

output:

--15612
10 10
1
--15611
15 8
1
--15610
1 5
1
--15609
5 9
1
--15608
15 2
1
--15607
7 4
1
--15606
5 8
1
--15605
4 15
1
--15604
4 14
1
--15603

result: