Palindromes in a Tree
914E2400· grandmaster4s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
51 22 33 43 5abcbb
Output
1 3 4 3 3
Sample 2of 2
Input
76 24 33 75 27 21 4afefdfs
Output
1 4 1 1 2 4 2
58%
914E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…