QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#553868#8431. Game on Bipartite Graphucup-team1005TL 1ms3616kbC++201.8kb2024-09-08 21:41:232024-09-08 21:41:23

详细

Test #1:

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

input:

3 2 5 3
1 1
1 2
2 1
2 2
3 2
1
2

output:

2
1
2
Player 1 wins

result:

ok Player 1 wins

Test #2:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

2 2 3 1
1 1
1 2
2 2

output:

1
Player 1 wins

result:

ok Player 1 wins

Test #3:

score: 0
Accepted
time: 1ms
memory: 3556kb

input:

2 2 6 1
2 2
2 2
1 1
1 2
2 1
2 2
2
1

output:

1
2
Player 2 wins

result:

ok Player 2 wins

Test #4:

score: -100
Time Limit Exceeded

input:

9 5 31 5
2 2
9 5
6 3
9 5
2 4
9 1
6 2
4 1
4 5
3 5
6 4
2 5
3 3
7 1
7 2
6 3
8 5
7 1
6 3
8 5
6 5
1 4
2 4
2 3
7 5
1 3
5 1
2 5
9 2
9 4
8 4
4
3
1
8
8

output:

1
5
3
4
5
5

result: