2381: Speed fines are not fine

Memory Limit:128 MB Time Limit:1.000 S
Creator:
Submit:18 Solved:1

Description

Many communities now have “radar” signs that tell drivers what their speed is, in the hope that they will slow down. You will output a message for a “radar” sign. The message will display information to a driver based on his/her speed according to the following table: 
许多社区现在有“雷达”标志,告诉司机他们的速度,希望他们能减速。你将为“雷达”标志输出一条信息。根据下表,信息将根据司机的速度向其显示信息:
km/h over the limit
Fine
1 to 20 
100$
21 to 30
270$
31 or above
$500

Input

The user will be prompted to enter two integers. First, the user will be prompted to enter the speed limit. Second, the user will be prompted to enter the recorded speed of the car 
用户将被提示输入两个整数。首先,将提示用户输入速度限制。其次,将提示用户输入记录的汽车速度。

Output

If the driver is not speeding, the output should be: 
如果司机没有超速,输出应该是: 
Congratulations, you are within the speed limit! 
If the driver is speeding, the output should be: 
如果司机超速,输出应该是: 
You are speeding and your fine is $F

Sample Input

Enter the speed limit: 40
Enter the recorded speed of the car: 39

Sample Output

Congratulations, you are within the speed limit!

Source/Category