cf/mirror

Online Palindrome

CF
2086F3000· legendary gm1s512 MB⇄ interactive

Examples

Sample 1of 2
Input
a
 
a
 
b
 
0
Output
0 0
 
1 2
 
2 3
Sample 2of 2
Input
a
 
a
 
b
 
a
 
b
 
0
Output
0 0
 
2 1
 
3 2
 
4 4
 
4 5
2086F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)