cf/mirror

Counting Factorizations

CF
1794D1900· candidate master4s256 MB⌨ stdin/stdout

Examples

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