Number of Ways
466C1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
51 2 3 0 3
Output
2
Sample 2of 3
Input
40 1 -1 0
Output
1
Sample 3of 3
Input
24 1
Output
0
58%
466C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
51 2 3 0 3
2
40 1 -1 0
1
24 1
0