#PCBBAY0000022. Định dạng tỉ lệ thành phần trăm (Format a Ratio as a Percentage)
Định dạng tỉ lệ thành phần trăm (Format a Ratio as a Percentage)
Format a Ratio as a Percentage
Version: Phuoc Hung OJ Extended
Problem Statement
Given a decimal ratio , where means , display it as a percentage. Print with exactly 2 digits after the decimal point and a trailing % character.
Input
The only line contains decimal ratio .
Output
Print the percentage with exactly 2 decimal places and a trailing %.
Subtasks
- Subtask 1 (100 points): .
Examples
Example 1
Input
0.075
Output
7.50%
Explanation. For input 0.075, applying .2% formatting produces exactly 7.50% (including any trailing zeros, separators or exponent characters).
Example 2
Input
1.0
Output
100.00%
Explanation. For input 1.0, applying .2% formatting produces exactly 100.00% (including any trailing zeros, separators or exponent characters).
Example 3
Input
0.0034
Output
0.34%
Explanation. For input 0.0034, applying .2% formatting produces exactly 0.34% (including any trailing zeros, separators or exponent characters).