QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#35499#1812. Interesting ColoringMaMengQiTL 3ms4552kbC++172.6kb2022-06-16 14:46:162022-06-16 14:48:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 4552kb

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

result:

ok accepted

Test #2:

score: -100
Time Limit Exceeded

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:


result: