栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

Atcoder Panasonic Programming Contest 2021(AtCoder Beginner Contest 231) A - Water Pressure

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Atcoder Panasonic Programming Contest 2021(AtCoder Beginner Contest 231) A - Water Pressure

题目链接:A - Water Pressure (atcoder.jp)

Problem Statement

Let 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:

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 10001000 meters is 1010 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

题意:给一个整数,输出/100后的结果

#include
using namespace std;


int main(){
	double d;
	while(cin >> d){
		printf("%.3fn", d/100.000);
	}
	return 0;
}

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/657116.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号