Run ID:62282
提交时间:2023-12-22 16:51:43
#include<bits/stdc++.h> using namespace std; int main() { int AR30=1,m[101]={},MP5=0,ml=-1,po=101; double ju=0,kp=0; cin>>MP5; for(;AR30<=MP5;AR30++) { cin>>m[AR30]; if(m[AR30]>ml) { ml=m[AR30]; } if(m[AR30]<po) { po=m[AR30]; } kp=kp+m[AR30]; } ju=kp/MP5; printf("%d %.2lf %d %d",kp,ju,ml,po); return 0; }