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 1746. Hyperrook

7
Posted by Martin 28 Feb 2010 17:48
If you WA 7 for many times, try to mod p when you output. It was told by onp.
Re: 7
Posted by 198808xc 28 Aug 2011 21:56
You are right.
In test 7, it seems that p = 1, and d = 0.

So, if your program doesn't mode p in initialization, it might produce wrong answers.