On Number of Decompositions into Multipliers
396A1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
115
Output
1
Sample 2of 3
Input
31 1 2
Output
3
Sample 3of 3
Input
25 7
Output
4
58%
396A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
115
1
31 1 2
3
25 7
4