You are viewing a single comment's thread. Return to all comments →
My solution
n=int(input()) c=0 for i in range(n): r=int(input()) a=[int(n) for n in input().split(' ')] while(len(a)!=0): n1=a.index(max(a)) a=a[0:n1] c=c+1 if(c%2==0): print("ANDY") else: print("BOB") c=0
Only last 4 cases giving Timeout Error help!
Seems like cookies are disabled on this browser, please enable them to open this website
Gaming Array
You are viewing a single comment's thread. Return to all comments →
My solution
Only last 4 cases giving Timeout Error help!