#t13. 雷达测速仪模拟
雷达测速仪模拟
Radar Speed Gun Simulation
Problem Description
Simulate a traffic-police radar speed gun. Input the car's speed (in mph, miles per hour); if the speed exceeds mph, display "Speeding", otherwise display "OK". The final result must be printed in the specified format.
Input Format
The input gives non-negative integer not exceeding on one line: the speed measured by the radar.
Output Format
Output on one line the result shown by the speed gun, in the format: Speed: V - S, where is the speed and is either Speeding or OK.
Sample Input 1
45
Sample Output 1
Speed: 45 - OK
Sample Input 2
75
Sample Output 2
Speed: 75 - Speeding
Constraints
, and is an integer.
Hint
- One condition and one formatted string. Match
Speed: 45 - OKcharacter by character against the sample for the spaces and the dash. - Check against the sample:
75→Speed: 75 - Speeding.