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.
# Enter your code here. Read input from STDIN. Print output to STDOUT#Python 3n=list(map(int,input().split()))#actualdatex=list(map(int,input().split()))#expecteddateassert(1<=n[0]<=31and1<=n[1]<=12and1<=n[2]<=3000)assert(1<=x[0]<=31and1<=x[1]<=12and1<=x[2]<=3000)ifn[2]>x[2]:fine=10000elifn[1]==x[1]:ifn[1]>x[1]:fine=500*(n[1]-x[1])elifn[1]==x[1]:ifn[0]>x[0]:fine=15*(n[0]-x[0])elifn[0]<=x[0]:fine=0else:fine=0else:fine=0print(fine)
Cookie support is required to access HackerRank
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 →