6763번 풀이 [Python]

sua·2022년 5월 27일
0

Baekjoon

목록 보기
37/161
post-thumbnail

문제


풀이

a = int(input())
b = int(input())
c = b - a

if c <= 0:
    print("Congratulations, you are within the speed limit!")
elif c >= 1 and c <= 20:
    print("You are speeding and your fine is ${}.".format(100))
elif c >= 21 and c <= 30:
    print("You are speeding and your fine is ${}.".format(270))
elif c >= 31:
    print("You are speeding and your fine is ${}.".format(500))
profile
가보자고

0개의 댓글