![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/91ef76c6a7efce1b962f856ca551f3deb48f650b?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
#include"head.h"
#include <bits/stdc++.h>
using namespace std;
struct stu
{
int socol[10];
};
int main()
{
srand(unsigned(time(NULL)));
stu s[10];
int max1=0,min1=0;
double sum=0;
for(int i=0;i<10;++i)
{
int totol=0;
for(int j=0;j<10;++j)
{
s[i].socol[j] = rand()%100;
sum+=s[i].socol[j];
totol+=s[i].socol[j];
}
max1=max(totol,max1);
min1=min(totol,max1);
}
cout << "总成绩最多的是" << max1 << "分"<<endl;
cout << "总成绩最少的是" << min1 << "分"<<endl;
cout << "平均分是" << sum/10 << "分"<<endl;
return 0;
}