407593: GYM102835 I Critical Structures

Memory Limit:1024 MB Time Limit:3 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

I. Critical Structurestime limit per test3 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputExamplesInput
1
6 6
1 2
2 3
3 4
4 5
5 6
6 1
Output
0 0 1 6
Input
1
6 7
1 2
2 3
3 1
4 5
5 6
6 4
1 4
Output
2 1 1 1

加入题单

上一题 下一题 算法标签: