QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#431207#6502. Disjoint Set Unionegypt_ioi2024_11WA 1ms3568kbC++231.7kb2024-06-05 05:37:202024-06-05 05:37:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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 1
2 1 2
1 1
YES
9
1 2
1 3
1 4
2 3 1
1 3
2 4 2
1 4
2 2 1
1 2
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
NO
YES
15
1 2
1 3
1 4
1 5
1 6
2 6 2
1 6
2 2 1
1 2
2 3 5
1 3
2 5 4
1 5
2 4 1
1 4

result:

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