B - 電卓 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MB

配点 : 8

注意

この問題に対する言及は、2020/11/8 18:00 JST まで禁止されています。言及がなされた場合、賠償が請求される可能性があります。 試験後に総合得点や認定級を公表するのは構いませんが、どの問題が解けたかなどの情報は発信しないようにお願いします。

問題文

あなたが持っている電卓は非負整数 X, Y を入力すると \frac{X}{Y} を先頭に余計な 0 をつけずに小数点第 3 位以下を切り捨てて小数点第 2 位までの値で表示します。 たとえば X=4,Y=2 のとき電卓には 2.00 が、X=2,Y=3 のときは 0.66 が表示されます。 ただし、Y=0 の場合は ERROR を表示します。

X,Y を入力したときの電卓の表示を求めるプログラムを作成してください。

制約

  • 与えられる入力は全て整数
  • 0 \leq X, Y \leq 100

入力

入力は以下の形式で標準入力から与えられる。

X Y

出力

電卓の表示を出力せよ。


入力例 1

100 3

出力例 1

33.33
  • \frac{X}{Y}= 33.33333 \cdots です。電卓に表示されるのは小数点第 2 位までである 33.33 となります。

入力例 2

42 0

出力例 2

ERROR
  • Y=0 の場合は ERROR を出力してください。

Score : 8 points

Warning

Do not make any mention of this problem until November 8, 2020, 6:00 p.m. JST. In case of violation, compensation may be demanded. After the examination, you can reveal your total score and grade to others, but nothing more (for example, which problems you solved).

Problem Statement

You have a calculator. When you enter non-negative integers X and Y, it shows the value \frac{X}{Y} without leading zeros after rounding down (towards negative infinity) to two decimal places. For example, if X=4,Y=2, the calculator shows 2.00; if X=2,Y=3, it shows 0.66. If Y=0, it shows ERROR.

Write a program to find what the calculator shows when X and Y are entered.

Constraints

  • All values in input are integers.
  • 0 \leq X, Y \leq 100

Input

Input is given from Standard Input in the following format:

X Y

Output

Print what the calculator shows.


Sample Input 1

100 3

Sample Output 1

33.33
  • We have \frac{X}{Y}= 33.33333 \cdots. The calculator rounds it down to two decimal places and shows 33.33.

Sample Input 2

42 0

Sample Output 2

ERROR
  • Print ERROR if Y=0.