cf/mirror

Palindrome Pairs

CF
1045I1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
aa
bb
cd
Output
1
Sample 2of 2
Input
6
aab
abcac
dffe
ed
aa
aade
Output
6
1045I.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)