- #include<stdio.h>
- struct m
- {
- int f[5];
- }stu[1000];
- int main()
- {
- int t,i,sum[100]={0},h=0,j,max;
- while(~ scanf("%d",&t))
- {
- for(i=0; i<t; i++)
- {
- for(j=0; j<t; j++)
- {
- scanf("%d",&stu[i].f[j]);
- sum[i]+=stu[i].f[j];
- }
- if(sum[i]<85)
- {
- h++;
- }
- }
- max=sum[0];
- for(i=1;i<t;i++)
- {
- if(sum[i]>max)
- {
- max=sum[i];
- }
- }
- if(h==t) printf("%d N0\n",h);
- else printf("%d %d\n",h,max);
- }
- return 0;
- }
Re: Untitled
From 李清璇, 3 Years ago, written in Plain Text, viewed 561 times.
This paste is a reply to Untitled from 李清璇
- view diff
URL http://axuhongbo.top/paste/view/061a1b61
Embed
Download Paste or View Raw
— Expand Paste to full width of browser