QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#232677#6526. Canvasucup-team2042ML 0ms26352kbC++143.3kb2023-10-30 19:24:122023-10-30 19:24:13

详细

Test #1:

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

input:

2
4 4
1 1 2 2
3 2 4 1
1 2 3 2
2 1 4 1
4 2
3 2 4 1
1 2 3 1

output:

7
4 2 1 3 
5
2 1 

result:

ok Correct. (2 test cases)

Test #2:

score: -100
Memory Limit Exceeded

input:

1
10 13
1 1 2 2
2 1 3 2
1 2 3 1
3 1 4 2
4 1 5 2
5 1 6 2
4 2 6 1
7 1 8 2
8 1 9 2
7 2 9 1
5 2 9 1
8 2 10 2
1 1 10 1

output:


result: