ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1860. Fiborial

hint (if you need it)
Posted by Aneto 11 Jul 2012 22:16
I had WA5.
After I spent some hours i found out that i used 100000007 instead of 1000000007, so, please, be careful.

PS. If n=1000000 then answer is 71348251

I hope it will help someone someday.
Re: hint (if you need it)
Posted by Noob 11 Jul 2012 23:44
Just write "1000*1000*1000+7" and be happy :)
Exponential notation (1e9+7) saves nerves :-)
Posted by Artem Khyzha 12 Jul 2012 01:15
$subject

Edited by author 12.07.2012 01:15