#K37417. Elevation Difference Estimation
Elevation Difference Estimation
Elevation Difference Estimation
Given two temperature measurements, T1 and T2, where T1 is the temperature measured at the lower point (in °C) and T2 is the temperature measured at the higher point (in °C), you are to calculate the estimated elevation difference between these two points. The relation between the temperature difference and elevation difference is given by the formula:
\(E = \frac{T_1 - T_2}{0.006}\)
where \(E\) is the elevation difference in meters. The final result must be rounded to the nearest integer.
Note: When T1 is less than T2, the elevation difference will be negative.
inputFormat
The input consists of a single line containing two space-separated integers: T1 (temperature at the lower point) and T2 (temperature at the higher point), both in degrees Celsius.
outputFormat
The output is a single integer representing the estimated elevation difference in meters, computed using the formula \(E = \frac{T_1 - T_2}{0.006}\) and rounded to the nearest integer. This integer should be printed on standard output.
## sample20 15
833
</p>