cf/mirror

Palindrome Everywhere

CF
2029F2500· grandmaster2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7
5
RRRRR
5
RRRRB
5
RBBRB
6
RBRBRB
6
RRBBRB
5
RBRBR
12
RRBRRBRRBRRB
Output
YES
YES
YES
NO
NO
YES
NO
2029F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…