#B3825. Rainfall Classification
Rainfall Classification
Rainfall Classification
Given the precipitation amount and the corresponding duration (either 1 or 24 hours), classify the rainfall intensity according to the following meteorological standards:
- Drizzle: 24-hour rainfall less than \(10\) mm.
- Moderate Rain: 24-hour rainfall greater than or equal to \(10\) mm but less than \(25\) mm.
- Heavy Rain: 24-hour rainfall greater than or equal to \(25\) mm but less than \(50\) mm.
- Torrential Rain: 24-hour rainfall greater than or equal to \(50\) mm.
Additionally, Flash Heavy Rain is defined for a 1-hour rainfall measurement of at least \(20\) mm. Note that these criteria are not mutually exclusive; for instance, a 1-hour rainfall of \(30\) mm meets both the Flash Heavy Rain condition and the 24-hour Heavy Rain threshold. In this problem, if the duration is 1 hour and the rainfall is at least \(20\) mm, output Flash Heavy Rain. Otherwise, use the 24-hour classification criteria.
inputFormat
The input consists of two numbers separated by space: the first number is the precipitation amount (in millimeters) and the second number is the duration (in hours), which will be either 1 or 24.
outputFormat
Output the rainfall classification as one of the following strings: "Drizzle", "Moderate Rain", "Heavy Rain", "Torrential Rain", or "Flash Heavy Rain".
sample
5 24
Drizzle