408199: GYM103049 I Island Tour

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

Description

I. Island Tourtime limit per test7 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputExamplesInput
6
1 1 1 1 1 1
2 1 3 2 3 1
8 7 4 9 7 2
7 6 2 9 2 1
Output
1 5 6
Input
4
1 1 1 1
1 1 1 1
10 3 2 1
4 2 5 1
Output
impossible

加入题单

上一题 下一题 算法标签: