407590: GYM102835 F Cable Protection

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

Description

F. Cable Protectiontime limit per test2 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputExamplesInput
4 11
0 1
0 3
0 4
0 5
1 2
1 6
2 3
2 9
3 12
6 7
6 8
9 10
10 11
12 13
12 14
Output
5
Input
3 2
0 1
1 2
0 2
1 3
2 4
Output
2

加入题单

上一题 下一题 算法标签: