P27348 [AtCoder] Calculator
普及+
题目描述

Problem Description

Your calculator, when given non-negative integers $X$ and $Y$, displays the value of $\frac{X}{Y}$ without leading zeros, truncating at the third decimal place and showing only up to the second decimal place. For example, when $X=4$ and $Y=2$, the calculator displays $2.00$, and when $X=2$ and $Y=3$, it displays $0.66$. However, if $Y=0$, it displays ERROR.

Write a program that determines the display of the calculator when given $X$ and $Y$.

Input Format

The input is provided from standard input in the following format:

$X$ $Y$

Output Format

Output the display of the calculator.

Sample Input and Output

Sample Input #1

100 3

Sample Output #1

33.33

Sample Input #2

42 0

Sample Output #2

ERROR

Notes/Hints

Constraints

  • All given inputs are integers.
  • $0 \leq X, Y \leq 100$

Sample Explanation 1

  • $\frac{X}{Y} = 33.33333\cdots$. The calculator displays 33.33 up to the second decimal place.

Sample Explanation 2

  • When $Y=0$, output ERROR.
输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
100 3
样例输出
33.33