|
|
back to boardWA 23 .... wth is this. -_- Posted by Mewtwo 3 Apr 2016 23:34 I used a simple algo... I am just checking 3 consecutive numbers... If any 3 consecutive numbers from the given numbers are like this, n1>n3>n2 (mid one is the smallest, first one is the largest and the last one lies in between these two values) , then the sequence is invalid (Cheater) ... else , I print "Not a proof" ... Is my algo ok? If so, then please help me with some test cases... I have tried all the test cases found in the discussions and my program passed all of them... Re: WA 23 .... wth is this. -_- Re: WA 23 .... wth is this. -_- Posted by Mewtwo 4 Apr 2016 00:43 Thanks a lot for your answer. I haven't heard about "Process Modelling" ... I'll look into it asap. And my algo that I used is wrong actually. It fails in this type of cases... 4 3 1 4 2 Correct answer is "Cheater", but my program shows "Not a proof"... I wonder how it passed 22 tests... 0_O Thanks again... :) Re: WA 23 .... wth is this. -_- «I haven't heard about "Process Modelling" ... I'll look into it asap.» Well, it's simple. Basically you just put balls into array in a proper order, and when the last ball is a current takeout request, you take it out of the array and move to next takeout request, and repeat if needed. If at certain point the takeout ball is not the one you expect, the answer is cheater. Good luck~ Re: WA 23 .... wth is this. -_- Posted by Ealham 24 Feb 2019 01:32 Thanks a lot... Got AC. |
|
|