k-Factorization
797A1100· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
100000 2
Output
2 50000
Sample 2of 3
Input
100000 20
Output
-1
Sample 3of 3
Input
1024 5
Output
2 64 2 2 2
58%
797A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
100000 2
2 50000
100000 20
-1
1024 5
2 64 2 2 2