#PCBBAY0000033. Ba cách quan sát cùng một số (Three Views of the Same Number)
Ba cách quan sát cùng một số (Three Views of the Same Number)
Three Views of the Same Number
Version: Phuoc Hung OJ Extended
Problem Statement
Given a real number parsed as Python float, print three views in order: the original print(x) result; the default display of round(x, 2); and the original number formatted with .2f. The displays may differ in length and trailing zeros.
Input
One line contains real .
Output
Print exactly three lines: the default display of , the default display of round(x, 2), then .2f formatting of .
Subtasks
- Subtask 1 (100 points): .
Examples
Example 1
Input
1.23456
Output
1.23456
1.23
1.23
Explanation. The original value displays as 1.23456, round(x, 2) as 1.23, and direct .2f formatting as 1.23, in the required order.
Example 2
Input
12.0
Output
12.0
12.0
12.00
Explanation. The original value displays as 12.0, round(x, 2) as 12.0, and direct .2f formatting as 12.00, in the required order.
Example 3
Input
-2.675
Output
-2.675
-2.67
-2.67
Explanation. The original value displays as -2.675, round(x, 2) as -2.67, and direct .2f formatting as -2.67, in the required order.