#938. 谜之阶乘(factorial)

谜之阶乘(factorial)

image

【输入样例 1】

3
1
6
120

【输出样例 1】

-1 
2 
3 1 
6 5 
3 
5 1 
6 3 
120 119

image