QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#426156#6502. Disjoint Set Unionegypt_ioi2024_07WA 2ms7724kbC++232.0kb2024-05-30 21:47:552024-05-30 21:47:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 7724kb

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
11
1 3
2 1 2
1 1
1 2
2 3 2
1 4
1 1
2 2 1
1 2
2 3 1
1 3
YES
20
1 1
2 2 1
1 2
2 3 1
1 3
2 1 2
1 1
1 2
2 4 2
1 4
2 1 2
1 1
2 3 4
1 3
1 3
2 2 3
1 2
2 4 5
1 4
1 5
NO
YES
32
1 1
2 2 1
1 2
2 2 1
1 3
1 1
1 1
2 2 1
1 2
2 4 1
1 4
2 4 5
1 4
1 5
1 5
2 2 5
1 3
2 1 2
1 1
1 2
2 4 2
1 4
...

result:

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