問題一覧 > 通常問題

No.668 6.0*10^23

レベル : / AI推定難易度 : 425 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 272
作問者 : butsurizuki / テスター : はむこ
お気に入りにしたユーザー ProblemId : 1630 / 自分の提出
問題文最終更新日: 2026-06-25 14:13:12
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 187 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。