My issue
IF THE NUMBER IS 15
BOB PLAYS AND REMOVE 13 FROM 15
REMAIN 2 WITH ALICE THEN ALICE REMOVES 1
REMAIN 1 WITH BOB AND NOTHING IS POSSIBLE ,
ALICE WINS
BUT ACCORDING TO SOLUTION BOB WINS , PLEASE EXPLAIN
My code
# cook your dish here
for i in range(int(input())):
n = int(input())
if n%4 == 1:
print('ALICE')
else:
print('BOB')
Problem Link: Number Game Revisited Practice Coding Problem