cf/mirror

Reverse a Substring

CF
1155A1000· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
7
abacaba
Output
YES
2 5
Sample 2of 2
Input
6
aabcfg
Output
NO
1155A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)