题解 | #求平均值#
求平均值
https://ac.nowcoder.com/acm/problem/22002
传送门->https://ac.nowcoder.com/acm/problem/22002
my blog->https://blog.nowcoder.net/yanhaoyang2106
代码实现
#include<bits/stdc++.h>//万能头文件,包含了c++绝大多数头文件
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b>>c;
printf("%lf",(a+b+c)/3);//由于浮点数默认保留6位,所以不用写%.6lf
return 0;
}
拜拜
已写的题解集 文章被收录于专栏
将自己知道的一些竞赛知识推广给大家
