题目链接:A - Water Pressure (atcoder.jp)
Problem StatementLet us assume that water pressure depends only on depth and is x/100 megapascal at a depth of x meters.
What is the water pressure in megapascals at a depth of D meters?
Constraints- 1≤D≤10000
- D is an integer.
Input
Input is given from Standard Input in the following format:
DOutput
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
1000Sample Output 1
10
The water pressure at a depth of 10001000 meters is 1010 megapascal. Outputs such as 10.0 and 9.999999 would also be accepted.
Sample Input 2
50Sample Output 2
0.5
Sample Input 3
3141Sample Output 3
31.41
题意:给一个整数,输出/100后的结果
#includeusing namespace std; int main(){ double d; while(cin >> d){ printf("%.3fn", d/100.000); } return 0; }



