cf/mirror

Queries for Number of Palindromes

CF
245H1800· expert5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
caaaba
5
1 1
1 4
2 3
4 6
4 5
Output
1
7
3
4
2
245H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)