QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#335326#895. ColorZhangYiDeWA 1ms4036kbC++202.4kb2024-02-23 09:33:482024-02-23 09:33:49

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 4032kb

input:

3 5
1 2
4

output:

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


result:

ok ok

Test #2:

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

input:

4 5
1 2 3
3 2
1

output:

No

result:

ok ok

Test #3:

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

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: 1ms
memory: 3728kb

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: 1ms
memory: 4036kb

input:

3 9
2 8
4

output:

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


result:

wrong answer Integer parameter [name=color of edges] equals to 0, violates the range [1, 9]