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 1023. Buttons

Hint (about WA 13)
Posted by Ilia S. Chm (Spb SU) 1 Nov 2007 18:45
I got WA on 13 test, because sometimes lost right answers. Try test like this:
input: 10
right answer: 4
Re: Hint (about WA 13)
Posted by Ikrom 24 Nov 2007 09:48
If you got WA 13 try this test
input: 26
output:12
Re: Hint (about WA 13)
Posted by Denis Koshman 26 Jul 2008 17:47
If you got WA13, make 'n/=2' for even 'n' before checking other divisors and don't forget to explicitly test 3 and 4.