QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#357017#895. ColorAlston_WanWA 1ms4004kbC++141.6kb2024-03-18 17:31:072024-03-18 17:31:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 4004kb

input:

3 5
1 2
4

output:

Yes
1 2 5 4 3 
4 3 5 2 
1 3 5 
2 4 
1 


result:

ok ok

Test #2:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

4 5
1 2 3
3 2
1

output:

No

result:

ok ok

Test #3:

score: 0
Accepted
time: 1ms
memory: 3848kb

input:

9 11
11 10 3 4 7 5 2 8
2 10 7 4 6 5 1
9 6 3 8 4 11
5 11 2 6 7
10 3 9 2
9 8 5
1 10
3

output:

No

result:

ok ok

Test #4:

score: 0
Accepted
time: 0ms
memory: 3912kb

input:

12 11
2 11 8 9 1 3 10 7 5 4 6
5 11 10 6 4 9 8 7 1 3
3 8 4 9 7 2 10 6 1
5 2 6 1 4 9 10 7
11 2 6 3 1 7 4
7 8 10 3 9 5
5 1 8 11 10
11 4 3 2
6 5 9
2 11
8

output:

Yes
2 11 8 9 1 3 10 7 5 4 6 
5 11 10 6 4 9 8 7 1 3 
3 8 4 9 7 2 10 6 1 
5 2 6 1 4 9 10 7 
11 2 6 3 1 7 4 
7 8 10 3 9 5 
5 1 8 11 10 
11 4 3 2 
6 5 9 
2 11 
8 


result:

ok ok

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3948kb

input:

3 9
2 8
4

output:

Yes
2 8 3 4 1 6 9 7 5 
4 1 3 9 8 5 6 7 
2 1 7 9 6 5 3 
2 6 1 3 9 4 
5 7 8 3 9 
5 4 8 2 
7 4 8 
2 6 
1 


result:

wrong answer Vertex 4 does not have an edge of color 5