You are viewing a single comment's thread. Return to all comments →
def libraryFine(d1, m1, y1, d2, m2, y2): if y1 > y2: return 10000 if y1 == y2: if m1 > m2: return 500 * (m1 - m2) if m1 == m2 and d1 > d2: return 15 * (d1 - d2) return 0
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Library Fine
You are viewing a single comment's thread. Return to all comments →