30 条题解
-
0dongliyang LV 8 @ 2024-6-13 14:12:02
#include<bits/stdc++.h>//万能头 #include<iostream//cin,cout #include<iomanip 》//cout<<fixed<<setprecision(n){位数保留} #include<cmath》//函数 /#include<math.h>/ #include<cstdio》//scanf,printf //#include<stdio.h> int a,sum=0,ans=0,num=0; long long b; float c; char d; bool e; double f; long double g,k; short h; long j; using namespace std; int main() { cin>>a>>b>>c>>d>>e>>f>>g>>h>>j; //scanf("%d,%ll,%f,%c,%b,%do,%ld,%s,%l",&a,&b,&c,&d,&e,&f,&g,&h,&j); if (a+b+c+d+e+f+g+h+j==/<,>,<=,>=/k){int p; for(int i;i<=num;i--){sum=sum+ans++; } cout<<p; /printf("%d\n",p);/} return 0; } 防伪标识://dongliyang6666666666666666666skhjkfgjgkjhfgjDV //没有工具包 谁敢抄???????????
-
02024-6-12 20:20:32@
#include<iostream> #include<iomanip> using namespace std; int main(){ double n,m,x; cin>>n; for(int i=1;i<=n;i++){ cin>>m; x+=m; } cout<<fixed<<setprecision(4); cout<<x/n<<endl; return 0; }
-
02024-6-12 20:19:00@
#include<iostream> #include<iomanip> using namespace std; int main() { int n double a,b =0 cin>>n for(int i =1;i<=n;i++) { cin>>a b= b + a } cout<<fixed<<setpeciion(4)<<b/n return 0; } 不 要 抄!!!!!!!!!! 肯 定 会 错!
-
02024-6-12 20:06:45@
#include<cstdio> #include<cstdlib> #include<cmath> #include<cctype> #include<cstring> #include<string> #include<vector> #include<set> #include<stack> #include<queue> #include<iostream> #include<iomanip> #include<ctime> #include<algorithm> #include<map> // const int MAXN=1e5; // double sz[MAXN]; using namespace std; int main(){ int a; double ans; scanf("%d",&a); for(int i=1;i<=a;i++){ double in; scanf("%lf",&in); ans+=in; } double out=ans/a; printf("%.4f",out); }
-
02024-6-12 19:57:19@
#include<iostream> #include<iomanip> using namespace std; int main() { long long n; double sum=0; cin>>n; for(int i=1;i<=n;i++) { double t; cin>>t; sum=sum+t; } cout<<fixed<<setprecision(4)<<sum/n; }
-
02024-6-1 19:20:45@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; } //钟鼎皓👾
-
02024-5-19 20:18:14@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
02024-4-6 17:09:14@
#include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
double t;
double num=0;
for(int i=1;i<=n;i++){
cin>>t;
num+=t;
} double y=num/n;
printf("%.4lf",y);
} //比水门还水的题
-
-12023-11-19 15:20:42@
#include <bits/stdc++.h> using namespace std; int main() { cout << "I don't know!"; return 0; }
-
-12023-8-22 20:41:08@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
-12023-3-22 20:22:04@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
-12023-3-22 20:21:59@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
-12023-3-22 20:21:52@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
-12023-3-22 20:21:49@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
-12023-3-22 20:21:44@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
-12023-3-22 20:21:40@
#include<iostream> #include<iomanip> using namespace std; int main(){ double a,b,c; cin>>a; for(int i=1;i<=a;i++) { cin>>b; c+=b; } cout<<fixed<<setprecision(4)<<c/a<<endl; }
-
-12023-3-22 20:21:19@
#include <iostream> #include<cmath> #include<string.h> #include<iomanip> using namespace std; double n,b,c; int main(){ cin>>n; for (int i=1;i<=n;i++) { cin>>b; c+=b;
} cout << fixed << setprecision(4) << c/n<< endl; return 0; }
-
-12023-3-22 20:18:20@
#include<iostream> #include<iomanip> using namespace std; int main() { int n; cin>>n; double num,sum,avrage; for (int i=1;i<=n;i++) { cin>>num; sum+=num; } avrage=sum/n; printf("%.4lf",avrage ); } 看到这里了
点个赞再走吧再见 -
-12023-3-22 20:15:24@
#include<iostream> #include<stdio.h> using namespace std; int main() { int n; cin >> n; double num,sum,avrage; for (int i = 1; i <= n; i++) { cin >> num; sum += num; } avrage = sum/n; printf("%.4lf",avrage ); }
-
-12023-3-14 22:20:05@
#include<iostream> #include<iomanip> using namespace std; int main() { int n; cin>>n; double num,sum,avrage; for (int i=1;i<=n;i++) { cin>>num; sum+=num; } avrage=sum/n; printf("%.4lf",avrage ); }
信息
- ID
- 921
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 1061
- 已通过
- 434
- 上传者