You are viewing a single comment's thread. Return to all comments →
ret=list(map(int, input().split())) due=list(map(int, input().split())) if(ret[0] > due[0] and due[1]==ret[1] and due[2]==ret[2] ): fine = 15 * (ret[0]-due[0]) print(fine) elif(ret[1] > due[1] and due[2]==ret[2]): fine = 500 * (ret[1]-due[1]) print(fine) elif(ret[2] > due[2]): print(10000) else: print(0)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 26: Nested Logic
You are viewing a single comment's thread. Return to all comments →
ret=list(map(int, input().split())) due=list(map(int, input().split())) if(ret[0] > due[0] and due[1]==ret[1] and due[2]==ret[2] ): fine = 15 * (ret[0]-due[0]) print(fine) elif(ret[1] > due[1] and due[2]==ret[2]): fine = 500 * (ret[1]-due[1]) print(fine) elif(ret[2] > due[2]): print(10000) else: print(0)