103671: [Atcoder]ABC367 B - Cut .0

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:7 Solved:0

Description

Score : $150$ points

Problem Statement

A real number $X$ is given to the third decimal place.

Print the real number $X$ under the following conditions.

  • The decimal part must not have trailing 0s.
  • There must not be an unnecessary trailing decimal point.

Constraints

  • $0 \le X < 100$
  • $X$ is given to the third decimal place.

Input

The input is given from Standard Input in the following format:

$X$

Output

Output the answer.


Sample Input 1

1.012

Sample Output 1

1.012

1.012 can be printed as it is.


Sample Input 2

12.340

Sample Output 2

12.34

Printing 12.340 without the trailing 0 results in 12.34.


Sample Input 3

99.900

Sample Output 3

99.9

Printing 99.900 without the trailing 0s results in 99.9.


Sample Input 4

0.000

Sample Output 4

0

Printing 0.000 without trailing 0s or an unnecessary decimal point results in 0.

Output

得分:150分

问题陈述

给定一个实数$X$,精确到小数点后三位。

在以下条件下打印实数$X$。

  • 小数部分不能有尾随的0
  • 不能有不必要的尾随小数点。

约束条件

  • $0 \le X < 100$
  • $X$精确到小数点后三位。

输入

输入从标准输入以下格式给出:

$X$

输出

输出答案。


示例输入1

1.012

示例输出1

1.012

1.012可以原样打印。


示例输入2

12.340

示例输出2

12.34

去掉尾随的0后,12.340打印为12.34


示例输入3

99.900

示例输出3

99.9

去掉尾随的0s后,99.900打印为99.9


示例输入4

0.000

示例输出4

0

去掉尾随的0s或不需要的小数点后,0.000打印为0

加入题单

上一题 下一题 算法标签: