QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#437431#6502. Disjoint Set Unionegypt_ioi2024_02WA 0ms3720kbC++202.2kb2024-06-09 10:34:492024-06-09 10:34:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

result:

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