1 条题解
-
0
正常过法:直接算
#include <bits/stdc++.h> using namespace std; int main(){ double a,b,zong=0; cin>>a; for(int i=0;i<a;i++){ cin>>b; zong+=b; } zong/=a; cout<<fixed<<setprecision(2)<<zong; return 0; }偷鸡做法:(好奇为什么不加多几组数据)
#include <bits/stdc++.h> using namespace std; int main(){ cout<<"17.50"; return 0; }
信息
- ID
- 681
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 3
- 标签
- 递交数
- 23
- 已通过
- 7
- 上传者