km/h over the limit |
Fine |
1 to 20 |
$ 100 |
21 to 30 |
$ 270 |
31 or above |
$ 500 |
现在,许多社区都有“雷达”标志,告诉驾驶员他们的速度是多少,希望他们能减速。
你将给出 “雷达” 标志上的数字。根据下表的驾驶员的速度来判断给驾驶员显示信息:
超出限制的km / h
|
罚款
|
1 到 20
|
$ 100
|
21 到 30
|
$ 270
|
31 及以上
|
$ 500
|
系统将提示用户输入两个整数。首先,用户输入速度限制。其次,用户输入汽车的速度。
如果驾驶员没有超速,则输出应为:Congratulations, you are within the speed limit
意思为:恭喜,您在速度限制之内
如果驾驶员超速,则输出应为:You are speeding and your fine is $
意思为:您已超速,罚款为$F
其中F是上表所述的罚款金额。
40
39
Congratulations, you are within the speed limit