cf/mirror

PalindromePalindrome

CF
2164H3400· legendary gm5s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
12 6
aaaabbbbaaaa
1 12
2 7
3 10
4 7
5 9
4 5
Output
4
2
3
2
3
0
2164H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)