1
2
3
4
5
6
7
8
|
a=int(input())
b=int(input())
over=b-a
if over >=31:print("You are speeding and your fine is $500.")
elif over>20:print("You are speeding and your fine is $270.")
elif over>0:print("You are speeding and your fine is $100.")
else:print("Congratulations, you are within the speed limit!")
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 6768 (0) | 2021.03.03 |
---|---|
[백준] 6764 (0) | 2021.03.03 |
[백준] 5928 (0) | 2021.03.03 |
[백준] 1297 (0) | 2021.03.03 |
[백준] 20492 (0) | 2021.03.03 |
댓글