Vlad and the Nice Paths (easy version)
1811G12100· master5s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
55 21 2 3 4 57 21 3 1 3 3 1 311 41 1 1 1 1 1 1 1 1 1 15 21 1 2 2 25 11 2 3 4 5
Output
1416531
58%
1811G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)