Comments

He was born in 2007

King

On Duelist1234Dividing factorials, 2 years ago
0

I don't think factorials is necessary in the Problem C

I think there is this set of data: n = 14, k = 720729. The number of 1s actually equals to 19, and you give 17. I think your solution is inaccurate for the case where s is not equal to k.