QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#426142#6502. Disjoint Set Unionegypt_ioi2024_01WA 1ms3588kbC++233.3kb2024-05-30 21:36:492024-05-30 21:36:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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 3 
2 1 2 
NO
NO
NO
NO

result:

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