QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#465658#8547. Whose Land?egypt_ioi2024b_05TL 0ms0kbC++202.7kb2024-07-07 04:00:572024-07-07 04:00:58

详细

Test #1:

score: 0
Time Limit Exceeded

input:

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

output:


result: