Turtle and Paths on a Tree
1981F3000· legendary gm4s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
553 2 2 1 11 1 2 253 2 1 1 11 1 2 261 2 1 2 1 31 2 3 3 472 1 2 3 1 2 11 1 2 2 3 3101 2 2 1 4 2 3 1 2 11 1 2 2 3 3 4 5 5
Output
46667
58%
1981F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…