Home computickets Calculate the balance of fission

Calculate the balance of fission

Author

Date

Category

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 .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions