QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#437425#6502. Disjoint Set Unionegypt_ioi2024_02WA 1ms3700kbC++202.2kb2024-06-09 10:24:182024-06-09 10:24:19

詳細信息

Test #1:

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

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
7
1 1
1 2
1 3
2 1 2
1 2
1 1
1 3
YES
13
1 1
1 2
1 3
1 4
2 3 2
1 1
1 2
1 3
1 4
2 2 1
1 1
1 2
1 3
YES
23
1 1
1 2
1 3
1 4
1 5
2 1 2
1 2
1 1
1 3
1 4
1 5
2 2 3
1 3
1 2
1 4
1 5
2 3 4
1 4
1 3
1 5
2 4 5
1 5
1 4
NO
YES
28
1 1
1 2
1 3
1 4
1 5
1 6
2 2 5
1 1
1 4
1 5
1 2
1 3
1 6
2 6 2
1 1
1 4
1 5
1 2
1 3
2 5 ...

result:

wrong answer f[6] = 5, but expected 2 (test case 5)