Calculate MOD (1000!, 333)
The main problem is that the answer should be output until the very last symbol in the form of a string (i.e. not in exponential form, as usual)
Answer 1
1000! = 1 * 2 * 3 * ... 332 * 333 * 334 * ... * 999 * 1000
1000! / 333 = 1 * 2 * 3 * ... 332 * 334 * ... * 999 * 1000
That is 1000!
divides on 333
Floor, answer 0
.