QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#35509#1812. Interesting ColoringZhaoZiLongTL 3ms4348kbC++173.7kb2022-06-16 15:30:132022-06-16 15:30:16

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 4348kb

input:

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

output:

1 2 1 2 1 2 1 2 1 3 4
3 1 2 4
2 1 4
3 1 2 4
3 1 2 3
3 1 2 3
3 1 2 3
3 1 2 3
3 1 2 3
3 1 2 3
2 1 2
2 1 2

result:

ok accepted

Test #2:

score: 0
Accepted
time: 3ms
memory: 4240kb

input:

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

output:

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

result:

ok accepted

Test #3:

score: -100
Time Limit Exceeded

input:

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

output:


result: