No.668 6.0*10^23
タグ : / 解いたユーザー数 272
作問者 :
butsurizuki
/ テスター :
はむこ
Problem Statement
"6.0*10^23" is the Avogadro constant.
In this problem, you are asked to write a given integer $N$ in a notation like "6.0*10^23".
When writing it in the form "$a$.$b$*10^$c$", the numeric part ($a$.$b$) must be the value rounded to the first decimal place (rounding half up at the second decimal place), and it must also satisfy $1 \le a \le 9$.
(The answer is uniquely determined.)
Input
N
$N$ is given on one line.
- Constraints
$100 \le N < 10^{100000}$
Output
Output the converted $N$ on one line.
Print a newline at the end.
Sample
Sample 1
Input
602214129000000000000000
Output
6.0*10^23
This is a detailed value of the Avogadro constant.
Sample 2
Input
149600000
Output
1.5*10^8
This is the average distance from the Earth to the Sun (km).
Sample 3
Input
299792458
Output
3.0*10^8
This is the speed of light (m/s).
Sample 4
Input
9999999999
Output
1.0*10^10
Be careful not only about the numeric part but also about the exponent part.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。