QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#40163#2831. Game TheoryGuanYunchangTL 25ms113184kbC++206.0kb2022-07-16 20:05:432022-07-16 20:05:46

詳細信息

Test #1:

score: 100
Accepted
time: 8ms
memory: 113160kb

input:

3 2
010
1 2
2 3
5 1
00000
1 5

output:

1
3
5

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 25ms
memory: 113184kb

input:

1 1
0
1 1

output:

1

result:

ok single line: '1'

Test #3:

score: -100
Time Limit Exceeded

input:

2 2
01
2 2
2 2
2 2
01
1 2
1 2
1 2
1
1 1
1 1
1 2
1
1 1
1 1
2 2
00
1 2
1 2
2 2
11
1 2
1 2
2 2
01
2 2
1 1
2 2
10
2 2
1 2
2 2
01
1 2
1 2
1 2
0
1 1
1 1
2 2
01
1 2
2 2
1 2
0
1 1
1 1
1 2
1
1 1
1 1
2 2
10
1 2
1 1
1 2
0
1 1
1 1
2 2
01
1 2
1 2
2 2
10
1 2
1 1
1 2
0
1 1
1 1
1 2
0
1 1
1 1
1 2
1
1 1
1 1
2 2
10
1 ...

output:

0
3
1
3
1
1
1
1
2
3
2
2
2
2
2
2
2
2
1
2
2
2
1
2
1
1
2
2
1
2
2
2
2
2
1
2
1
2
1
1
2
2
2
2
2
2
2
1
2
2
1
2
2
2
2
2
1
2
1
1
2
2
2
1
2
1
2
1
1
1
2
2
2
2
2
2
2
1
2
2
1
2
1
2
1
2
2
2
2
2
2
1
2
2
2
2
1
2
1
1
1
1
1
1
2
2
2
2
1
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
1
2
2
1
2
1
2
1
2
1
2
2
2
1
2
2
2
2
2
2
1
2
1
...

result: