623

500!
Type:
Big Integer
Diff:3.5

Tricks

The judge time for this problem is enough for any kind of solution. For getting better time you can use pre-calculation dynamically with big integer, to find all the number .

If you have any advice, complements 

or proposal, please  Send mail to Author

Submit

 

1