cf/mirror

Path Counting

CF
954H2500· grandmaster5s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
2 2 2
Output
14 19 20 20 16 16
Sample 2of 2
Input
3
2 3
Output
8 13 6 9
954H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)