QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#426824#6502. Disjoint Set Unionegypt_ioi2024_01WA 1ms3652kbC++203.4kb2024-05-31 22:22:282024-05-31 22:22:30

詳細信息

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3652kb

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
3
1 2 
1 3 
2 1 2 
YES
7
1 1 
2 4 2 
1 2 
1 3 
1 4 
2 2 1 
1 3 
YES
8
1 5 
2 1 2 
1 2 
2 2 3 
1 3 
2 3 4 
1 4 
2 4 5 
NO
NO

result:

wrong answer you didn't find a solution but jury did (test case 5)