atcoder#ABC233B. [ABC233B] A Reverse
[ABC233B] A Reverse
Score : points
Problem Statement
You are given integers , , and a string consisting of lowercase English letters. Print this string after reversing (the order of) the -th through -th characters.
Constraints
- consists of lowercase English letters.
- ( is the length of .)
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the specified string.
3 7
abcdefgh
abgfedch
After reversing the -rd through -th characters of abcdefgh
, we have abgfedch
.
1 7
reviver
reviver
The operation may result in the same string as the original.
4 13
merrychristmas
meramtsirhcyrs