Untitled
unknown
plain_text
a year ago
531 B
1
Indexable
Never
def win1(x,s): return (x+1+s)>= 62 or (x+s+1)>= 62 or (2*x+s)>= 62 or (x+2*s)>=62 def loss1(x,s): return (not(win1(x,s))) and win1(x+1,s) and win1(x,s+1) and win1(2*x,s) and win1(x,2*s) def win2(x,s): return loss1(x+1,s) or loss1(x,s+1) or loss1(x,2*s) or loss1(x*2,s) def loss12(x,s): return (win1(x+1,s) or win2(x+1,s)) and (win1(x,s+1) or win2(x,s+1)) and (win1(2*x,s) or win2(2*x,s)) and (win1(x,2*s) or win2(x,2*s)) x =10 for s in range(1,52): if loss1(x,s): print(s)