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.
deflibraryFine(d1,m1,y1,d2,m2,y2):# Write your code hereify1>y2:return10000ify1==y2:ifm1==m2:ifd1>d2:return15*abs(d2-d1)elifm1>m2:return500*abs(m2-m1)return0
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 →