Run ID:62278

提交时间:2023-12-22 16:48:52

#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=ju/MP5; printf("%d %.2lf %d %d",ju,kp,po,ml); return 0; }