Description译方见此:http://61.187.179.132/JudgeOnline/problem.php?id=2386 相比原题,要求输出方案。InputOutputSample Input5 2 1 2 2 3 Sample Output2 2 4 2 3 5 1 3 HintSource