QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#431209#6502. Disjoint Set Unionegypt_ioi2024_11WA 0ms3764kbC++232.0kb2024-06-05 05:51:362024-06-05 05:51:36

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3764kb

input:

5
3
1 2 3
2 2 3
4
1 2 3 3
1 1 1 2
5
1 2 3 4 5
2 3 4 5 5
5
1 1 1 1 1
1 2 3 4 5
6
1 2 2 4 5 6
1 1 5 1 4 2

output:

1 -> 2
YES
3
1 1
2 1 2
1 1
2 -> 1
3 -> 1
4 -> 2
4 -> 3
YES
9
1 2
1 3
1 4
2 4 2
1 4
2 2 1
1 2
2 3 1
1 3
1 -> 2
2 -> 3
3 -> 4
4 -> 5
YES
12
1 1
1 2
1 3
1 4
2 1 2
1 1
2 2 3
1 2
2 3 4
1 3
2 4 5
1 4
2 -> 1
3 -> 1
4 -> 1
5 -> 1
NO
2 -> 1
3 -> 5
3 -> 2
4 -> 1
5 -> 4
6 -> 2
6 -> 3
YES
15
1 2
1 3
1 4
1 5
1 6...

result:

wrong answer Token parameter [name=token] equals to "1", doesn't correspond to pattern "(YES)|(NO)" (test case 1)