QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#107255#6396. Puzzle: KusabiZhaoZiLongWA 2ms5720kbC++172.3kb2023-05-20 16:35:412023-05-20 16:35:43

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 5720kb

input:

8
2 1 -
3 1 -
4 2 Tong
5 2 Tong
6 3 Duan
7 3 -
8 7 Chang

output:

Yes
6 8
4 5

result:

ok Correct.

Test #2:

score: 0
Accepted
time: 2ms
memory: 3664kb

input:

10
2 1 Duan
3 2 Duan
4 2 -
5 4 Chang
6 2 Chang
7 1 Duan
8 6 Tong
9 6 Tong
10 3 Chang

output:

Yes
8 9
3 10
2 6
7 5

result:

ok Correct.

Test #3:

score: -100
Wrong Answer
time: 2ms
memory: 5652kb

input:

2
2 1 Tong

output:

Yes

result:

wrong answer Only odd number of marked vertices to match.