Sum of Paths
1467D2200· master3s1024 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 1 53 5 1 4 21 92 43 64 65 2
Output
6258788686
Sample 2of 3
Input
5 2 53 5 1 4 21 92 43 64 65 2
Output
157147207227227
Sample 3of 3
Input
4 40 692 21 82 463 561 724 281 972 492 88
Output
23918526166631404150729936516818968766409450756910476
58%
1467D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)