You are viewing a single comment's thread. Return to all comments →
Not my own solution
test = int(input()) for _ in range(test): n,m = map(int,input().strip().split()) if m==1: print(2) else: if n%2==1: print(1) else: print(2)
`
Seems like cookies are disabled on this browser, please enable them to open this website
Tower Breakers
You are viewing a single comment's thread. Return to all comments →
Not my own solution
`