1701: 【CSP基础】三位数运算▃

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:15 Solved:12

Description

小丽在编程课上学会了拆位运算,她已经可以拆出一个三位整数的百位、十位和个位了,她想知道这个整数的(百位 lns="http://www.w3.org/1998/Math/MathML">+ 十位) lns="http://www.w3.org/1998/Math/MathML">/ (十位 lns="http://www.w3.org/1998/Math/MathML">+ 个位)的结果是多少,请编程帮她实现?(请注意,计算结果要保留 lns="http://www.w3.org/1998/Math/MathML">2 位小数)。

比如:整数 lns="http://www.w3.org/1998/Math/MathML">135 的(百位 lns="http://www.w3.org/1998/Math/MathML">+ 十位)lns="http://www.w3.org/1998/Math/MathML">/ (十位 lns="http://www.w3.org/1998/Math/MathML">+ 个位)的计算结果 lns="http://www.w3.org/1998/Math/MathML">=1+3/3+5=4/8=0.50 。

Input

读入一个三位的正整数 lns="http://www.w3.org/1998/Math/MathML">nlns="http://www.w3.org/1998/Math/MathML">n 的各个位中都不含数字 lns="http://www.w3.org/1998/Math/MathML">0)。

Output

输出这个三位正整数(百位 lns="http://www.w3.org/1998/Math/MathML">+ 十位)除以(十位 lns="http://www.w3.org/1998/Math/MathML">+ 个位)的计算结果,保留 lns="http://www.w3.org/1998/Math/MathML">2 位小数。

Sample Input Copy

135

Sample Output Copy

0.50