PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#PCBSAU0000028. Định dạng phần trăm (Percentage Formatting)
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Định dạng phần trăm (Percentage Formatting)
Percentage Formatting
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given a proportion between 0 and 1, print its percentage with two decimal places and a trailing percent sign.
Input
One line containing real proportion .
Output
One line containing the value with two fractional digits and a trailing %.
Subtask
- Subtask 1 — 100 points: ; is a multiple of .
Example
Input
0.375
Output
37.50%
Explanation
Multiplying 0.375 by 100 yields 37.5; .2% displays 37.50%.