- #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))
- {
- h =0;
- for(i=0; i<t; i++)
- {
- sum[i] =0 ;
- for(j=0; j<5; 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 No\n",h);
- else printf("%d %d\n",h,max);
- }
- return 0;
- }
Re: Re: Untitled
From Stained Camel, 3 Years ago, written in Plain Text, viewed 464 times.
This paste is a reply to Re: Untitled from 李清璇
- view diff
URL http://axuhongbo.top/paste/view/8bb88586
Embed
Download Paste or View Raw
— Expand Paste to full width of browser