QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#689452#6396. Puzzle: KusabiNailongGroup#WA 7ms31788kbC++204.7kb2024-10-30 17:08:422024-10-30 17:08:42

詳細信息

Test #1:

score: 100
Accepted
time: 7ms
memory: 31788kb

input:

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

output:

YES
5 4
8 6

result:

ok Correct.

Test #2:

score: 0
Accepted
time: 0ms
memory: 29476kb

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
10 3
9 8
6 2
5 7

result:

ok Correct.

Test #3:

score: -100
Wrong Answer
time: 3ms
memory: 29236kb

input:

2
2 1 Tong

output:

YES

result:

wrong answer Only odd number of marked vertices to match.