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 :-)
$subject
Edited by author 12.07.2012 01:15