410804: GYM104118 F Factions vs The Hegemon

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

Description

F. Factions vs The Hegemontime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputExamplesInput
5
3 1 4 9 1
Output
4 9
3 8
1 3
2 6
5 12
Input
6
12 4 12 1 1 7
Output
1 12
3 12
5 1
4 7
6 10
2 24

加入题单

算法标签: