QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294141#6502. Disjoint Set UnionhyforcesWA 1ms3560kbC++203.9kb2023-12-30 08:26:082023-12-30 08:26:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

result:

wrong answer Token parameter [name=token] equals to "Yes", doesn't correspond to pattern "(YES)|(NO)" (test case 1)