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 1087. The Time to Take Stones

if the test data is ....
Posted by Lin Zi 26 Oct 2001 17:48
if the test data is
"3 1
 2
"
what shall  we output?
This input is impossible
Posted by Marat Bakirov 26 Oct 2001 18:44
Read the problem text :
"
It is guaranteed that it is possible to make next move
irrespective to already made moves.
"
Re: This input is impossible
Posted by Lin Zi 26 Oct 2001 19:14
you means that all the test data has a correct answer
Yes
Posted by Marat Bakirov 26 Oct 2001 19:17
There can be "no solution"
The problem text say that there always can be a move :)

in your case when 3 - 2 = 1 left
NO MOVE is possible

and the problem  text say that there can always be a move
until the end of game :)