cf/mirror

Number of Cubes

CF
2040F2700· international gm5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
1 1 1 1
1
6 1 1 3
1 2 3
12 1 1 3
2 4 6
3 3 1 2
3 6
2 3 3 2
6 12
72 60 96 4
17280 86400 120960 190080
Output
1
10
1160
12
1044
231490207
2040F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)