We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
def libraryFine(d1, m1, y1, d2, m2, y2):
if y1>y2:
return 10000
if y1==y2:
if m1>m2:
return (m1-m2)*500
if m1==m2 and d1>d2:
return (d1-d2)*15
return 0
Cookie support is required to access HackerRank
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 →
@michal_remis Agreed!