#5105. Subsegment Reverse
0
Subsegment Reverse
Subsegment Reverse
题目描述
You are given positive integers , , and .
对于长度为 的序列 ,对第 个到第 个元素执行了一次反转操作。
输出该操作后的序列。
输入格式
The input is given from Standard Input in the following format:
输出格式
Let be the sequence after the operation. Print it in the following format:
5 2 3
1 3 2 4 5
7 1 1
1 2 3 4 5 6 7
10 1 10
10 9 8 7 6 5 4 3 2 1
提示
All input values are integers.
Initially, .
反转第二个到第三个元素后,序列变为 ,应当输出该序列。
可能存在 .
可能存在 或 .
标签: AtCoder|abc356A
来源
AtCoder|abc356A