ENG
RUS
Timus 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
Discussion of Problem
1746
. Hyperrook
Show all threads
Hide all threads
Show all messages
Hide all messages
7
Martin
1746
. Hyperrook
28 Aug 2011 21:56
2
7
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
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.
No subject
Zayakin Andrey[PermSU]
1746
. Hyperrook
16 Aug 2010 03:57
1
No subject
Zayakin Andrey[PermSU]
16 Aug 2010 03:57
Don`t forget about d = 0 and p = 1, =)
Edited by author 16.08.2010 03:58
New topic
Style:
flat
|
tree
|
nested
Thread Order:
bubble
|
fixed
© 2000–2025
Timus Online Judge Team
. All rights reserved.