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

Can anybody explain the solution?
Posted by Yegor Stepanov 2 Apr 2011 20:23
I really don't understand why is the answer is least divisor - 1.
Can anybody help?