You are viewing a single comment's thread. Return to all comments →
d1, m1, y1 = map(int, input().split()) d2, m2, y2 = map(int, input().split()) if y1 < y2: print(0) elif y1 == y2: if m1 < m2: print(0) elif m1 == m2: if d1 <= d2: print(0) else: print(15*(d1-d2)) else: print(500*(m1-m2)) else: print(10000)
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 →