I have tested my code for several inputs for the problem “The lead game”. Still not getting the error. Please help.
My code goes as follow :
def main(): a= b=input() while (b>0): c,d=raw_input().split() a.append(int(c)-int(d)) b=b-1 e=max(a) f=min(a)*(-1) if(e>f): print "1",e else: print "2",f if __name__ == "__main__": main()