#t168. 英尺与英寸的转换2
英尺与英寸的转换2
Feet and Inches Conversion 2
Problem Description
Americans are used to the imperial system of measurement, and commonly express height as "so many feet and so many inches". Given an American's height as feet and inches, convert it to metres () and output it.
It is known that: foot = inches, and inch = centimetres = metres.
Input Format
The input gives one line containing two non-negative integers and , representing the number of feet and the number of inches respectively, separated by a space.
Output Format
Output one line, the corresponding height (in metres), kept to two decimal places.
Sample Input
5 7
Sample Output
1.70
Constraints
, (the number of inches does not exceed , since 12 inches make 1 foot).
Hint
- Conversion chain: first unify into total inches, then multiply by 0.0254 to get metres. The unit is metres, not centimetres — getting the order of magnitude wrong is immediately visible in the sample.
- Keep two decimal places.
- Verify with the sample:
5 7→1.70.