#PCBSAU0000031. Round và định dạng hiển thị (Rounding versus Formatting)
Round và định dạng hiển thị (Rounding versus Formatting)
Rounding versus Formatting
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given real and integer , print the result of Python round(x, k) on the first line using normal float representation; print with exactly decimal places on the second.
Input
One line contains real and integer .
Output
Line 1 is Python float round(x, k); line 2 uses the dynamic fixed-precision format.
Subtask
- Subtask 1 — 100 points: , is a multiple of ; .
Example
Input
2.5 2
Output
2.5
2.50
Explanation
round(2.5,2) is the float 2.5; fixed precision prints 2.50 on the second line.