You are viewing a single comment's thread. Return to all comments →
This is my code and it worked but 13/16 test case only passed. Do anyone know the needed changes in my code to pass all the given test case?
flag=False a=[int(i) for i in input().split(" ")] d=[int(i) for i in input().split(" ")] for i in range(1,len(a)+1): i=-i if a[i]>d[i] and i==-1: print(10000) flag=True break elif a[i]>d[i] and i==-2: print(500*(a[i]-d[i])) flag=True break elif a[i]>d[i] and i==-3: print(15*(a[i]-d[i])) flag=True break if flag==False: print(0)
Seems like cookies are disabled on this browser, please enable them to open this website
Library Fine
You are viewing a single comment's thread. Return to all comments →
This is my code and it worked but 13/16 test case only passed. Do anyone know the needed changes in my code to pass all the given test case?