2 条题解
-
0
#include<bits/stdc++.h> using namespace std; int a,b,c,d,e,f,g; int main(){ cin>>a>>b>>c>>d>>e>>f>>g; int sum=a+b+c+d+e+f+g; double avg=sum/7.0; int maxx=max(a,max(b,max(c,max(d,max(e,max(f,g)))))); int minn=min(a,min(b,min(c,min(d,min(e,min(f,g)))))); printf("%.1f %d %d",avg,maxx,minn); return 0; } -
0
#include<bits/stdc++.h> using namespace std; int a,b,c,d,e,f,g; int main(){ cin>>a>>b>>c>>d>>e>>f>>g; int sum=a+b+c+d+e+f+g; double avg=sum/7.0; int maxx=max(a,max(b,max(c,max(d,max(e,max(f,g)))))); int minn=min(a,min(b,min(c,min(d,min(e,min(f,g)))))); printf("%.1f %d %d",avg,maxx,minn); return 0; }
- 1
信息
- ID
- 1941
- 时间
- 1000ms
- 内存
- 32MiB
- 难度
- 3
- 标签
- 递交数
- 18
- 已通过
- 11
- 上传者