QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#426192#6502. Disjoint Set Unionegypt_ioi2024_07WA 0ms7764kbC++232.7kb2024-05-30 22:14:012024-05-30 22:14:02

詳細信息

Test #1:

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

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:

YES
4
1 3
2 1 2
1 1
1 2
YES
6
2 3 2
1 4
1 1
2 2 1
1 2
1 3
YES
9
2 1 2
1 1
2 2 3
1 2
2 3 4
1 3
2 4 5
1 4
1 5
NO
YES
10
2 6 2
1 6
2 2 5
1 3
2 5 4
1 5
1 1
2 4 1
1 2
1 4

result:

wrong answer f[5] = 1, but expected 4 (test case 5)