#CCBCHBA0000067. Bảng Fahrenheit đảo chiều (Descending Fahrenheit Table)
Bảng Fahrenheit đảo chiều (Descending Fahrenheit Table)
Descending Fahrenheit Table
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Print Fahrenheit values in descending order, F=300,280,...,0 (including zero). For each F print F, one space, and C=(F-32)*5/9 with exactly one decimal. There is no header.
Input
There is no input.
Output
Exactly 16 rows F C in decreasing order, including the row for F=0.
Subtasks
- Subtask 1 (20%): In đúng bảng cố định 16 dòng.
- Subtask 2 (30%): In đúng bảng cố định 16 dòng.
- Subtask 3 (50%): In đúng bảng cố định 16 dòng.
Examples
Example 1
Input:
Output:
300 148.9
280 137.8
260 126.7
240 115.6
220 104.4
200 93.3
180 82.2
160 71.1
140 60.0
120 48.9
100 37.8
80 26.7
60 15.6
40 4.4
20 -6.7
0 -17.8
Explanation:
First row 300 148.9, final row 0 -17.8; the loop includes zero.