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

bad tests
Posted by Connector 6 Mar 2009 19:12
15 3
3 5 7

AC return "1", but the right answer is "2", isn't it ??
Re: bad tests
Posted by chensqi 8 Mar 2009 07:52
NO
the first man can get 5,then leave 10 stones.
if second man get 3 ,the firtst man get 7
if second man get 5 ,the firtst man get 5
if second man get 7 ,the firtst man get 3
so,right answer is "1"
Re: bad tests
Posted by Van_Veber 4 Aug 2009 16:53
The First man can get 5, then leave 10 stones:
 -> if Second man get 3, the Firtst man get 7 -- First loose;
 -> if Second man get 5, the Firtst man get 5 -- First loose;
 -> if Second man get 7, the Firtst man get 3 -- First loose;
So, the Second -- WIN! => Right answer "2"!!!

Edited by author 04.08.2009 16:54
This test is incorrect (-)
Posted by Sandro (USU) 4 Aug 2009 17:21
Re: bad tests
Posted by WiN_uA 4 Aug 2009 21:16
The right answare is "1"
Re: bad tests
Posted by Qafqaz_Ferhad Cebiyev 12 Jul 2010 17:09
right answer 2
Re: bad tests
Posted by Kolyanich 29 Apr 2011 04:24
It is not a valid test. Because if first take 7, and second take 7, then nobody can take last 1 stone. Test is valid only if GCD(of all amounts and N) equal to smallest amount.