|
|
back to boardbad tests 15 3 3 5 7 AC return "1", but the right answer is "2", isn't it ?? Re: bad tests 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 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 (-) Re: bad tests Posted by WiN_uA 4 Aug 2009 21:16 The right answare is "1" Re: bad tests right answer 2 Re: bad tests 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. |
|
|