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

Show all messages Hide all messages

Is it impossible that output the "0"? XiangGuangTe 17 Apr 2004 11:45
No, because for example k=2, answer l=1 doesn't satisfy condition 2<=l<k
To Vovka:

Look at problem constraints:
K >= 3.
I think so.
Because N-1 could always be the right answer,but I don't know why I got wa #11
Re: Is it impossible that output the "0"? AlexF [USTU] 12 Jun 2007 18:28
n-1 is the right answer, but the task want you to choose the minimal from all the answers
thanx!