Problem2565--翻转数组中的一个子段

2565: 翻转数组中的一个子段

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

给定一个整数n和n个整数(约定2<=n<=1000),
以及另外两个整数L和R,(1<=L<R<=n)
请将从L到R的这个子段内的数字翻转,然后输出整个数组。




Input

第一行,三个整数,n,L,R,含义见题目描述
第二行,n个整数

Output

翻转L到R之间的子段后的整个数组

Sample Input Copy

10 3 6
1 2 3 4 5 6 7 8 9 10

Sample Output Copy

1 2 6 5 4 3 7 8 9 10

Source/Category