408390: GYM103110 F Island Isolation

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

F. Island Isolationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputExampleInput
6
1 2
2 3
2 4
1 5
5 6
Output
2 3
2 4
1 2
5 1
5 6
1 5
2 1
3 2
4 2
6 5

加入题单

上一题 下一题 算法标签: