Apparently, my strategy is not good. I can not find victorious. Please, for two simple tests (eg, 2-nd and 19-th), and correct the results of those tests. Thanks for your help.
z-game
isnt this a good strat?
u just calculate whats the sum of first n-2 number=a
and the number with the index n-1=b
if a odd then u always win(if b even u increase last number by 2,and keep b even,else if b odd u increase a by 1 if possible or b if not and last number by 1 and u can always make b even)
if a even then u always lose...
if a=0 then if b even u lose else u win
u just calculate whats the sum of first n-2 number=a
and the number with the index n-1=b
if a odd then u always win(if b even u increase last number by 2,and keep b even,else if b odd u increase a by 1 if possible or b if not and last number by 1 and u can always make b even)
if a even then u always lose...
if a=0 then if b even u lose else u win
If a player has in front of him in a position where 'a' is even, he can still make such a position, for another player. So, then, both in the losing position !? However, there remains the problem of lexicographic smallest move.