|
|
If you WA 7 for many times, try to mod p when you output. It was told by onp. 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. Don`t forget about d = 0 and p = 1, =) Edited by author 16.08.2010 03:58 |
|
|