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 1243. Divorce of the Seven Dwarfs

what is wrong
Posted by jose katzuo valdez carmona 2 Mar 2007 08:37
do you know why i got restricted function on test #5, i used math library for solve the problem, and i used fmod to get the answer
Re: what is wrong
Posted by EXFlaer 2 Mar 2007 20:34
You must use long arithmetics, because size of number N is more, than the sizes of standard types. On test #5 authors use very long number.
Re: what is wrong
Posted by Seyyed Mehran Kholdi 23 Jun 2008 19:08
NO! theres no need to use long arithmetics. This problem's mush more easier than waht you think.you can get AC in 0.001
Re: what is wrong
Posted by hx 10 Feb 2009 19:17
I not used long arithmetics, but i have wrong answer on test 5 too.
Re: what is wrong
Posted by hx 11 Feb 2009 16:08
I try do n mod 7