102310: [AtCoder]ABC231 A - Water Pressure
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Score : $100$ points
Problem Statement
Let us assume that water pressure depends only on depth and is $\dfrac{x}{100}$ megapascal at a depth of $x$ meters.
What is the water pressure in megapascals at a depth of $D$ meters?
Constraints
- $1 \leq D \leq 10000$
- $D$ is an integer.
Input
Input is given from Standard Input in the following format:
$D$
Output
Print the answer. Your output will be considered correct when its absolute or relative error from our answer is at most $10^{-3}$.
Sample Input 1
1000
Sample Output 1
10
The water pressure at a depth of $1000$ meters is $10$ megapascal. Outputs such as 10.0
and 9.999999
would also be accepted.
Sample Input 2
50
Sample Output 2
0.5
Sample Input 3
3141
Sample Output 3
31.41
Input
题意翻译
输入正整数 $n$ ,输出 $n÷100$ 的结果。误差在 $10^{-3}$ 以下算通过。Output
分数:100分
问题描述
假设水压仅取决于深度,在深度为x米的地方水压为$\dfrac{x}{100}$ 兆帕。
在深度为D米的地方水压为多少兆帕?
限制条件
- $1 \leq D \leq 10000$
- D是一个整数。
输入
从标准输入以以下格式获取输入:
$D$
输出
打印答案。当你的答案与我们的答案的绝对误差或相对误差不超过$10^{-3}$时,你的输出将被认为是正确的。
样例输入1
1000
样例输出1
10
在深度为1000米的地方水压为10兆帕。输出如10.0
和9.999999
也将被接受。
样例输入2
50
样例输出2
0.5
样例输入3
3141
样例输出3
31.41