cf/mirror

Number of Ways

CF
466C1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
1 2 3 0 3
Output
2
Sample 2of 3
Input
4
0 1 -1 0
Output
1
Sample 3of 3
Input
2
4 1
Output
0
466C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)