Problem1171--【入门】数字交换

1171: 【入门】数字交换

Time Limit: 1.000 Sec  Memory Limit: 16 MB
Submit: 25  Solved: 24
[Submit] [Status] [Web Board] [Creator:][下载测试数据]

Description

有一组数(设有N个)。编一程序交换这组数中任意指定的两段。(两段不重合,且这两段的数字个数一样)

Input

一个数N(不超过20个)
一行N个数由空格分开
两个空格分开的数(表示要交换的其中一段)
两个空格分开的数(表示要交换的其中另一段)

Output

交换后的一行数(中间用空格隔开)

Sample Input

16
3 6 11 45 23 70 67 34 26 89 90 15 56 50 20 10 
3 5
13 15

Sample Output

3 6 56 50 20 70 67 34 26 89 90 15 11 45 23 10

Source/Category


[Submit] [Status]