int main()
{
int n,i,sum,tmp,av1,av2;
scanf("%d",&n);
while(scanf("%d",&tmp))
{
sum=0;
for(i=1;i<=n;i++)
scanf("%d",&tmp);
sum+=tmp;
}
av1=sum*1.00/(60*n);
av2=sum*1.00/(80*n);
if(av1>=0.95&&av2>=0.60)
printf("Yes\n");
else
printf("No\n");
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
double x,a,b,c,m1,m2,m3;
scanf("%lf %lf %lf %lf",&x,&a,&b,&c);
m1=x*a;
m2=x*b;
m3=x*c;
if(m1>m2&&m1>m3)
printf("A %d\n",(int)m1);
else if(m2>m3)
printf("B %d\n",(int)m2);
else
printf("C %d\n",(int)m3);
return 0;
}
#include <stdio.h>
#include <math.h>
int main()
{
int m,n;
double count;
scanf("%d,%d",&m,&n);
count=(ceil)m*n*0.01;
printf("%d\n",(int)count));
return 0;
}
{
int n,i,sum,tmp,av1,av2;
scanf("%d",&n);
while(scanf("%d",&tmp))
{
sum=0;
for(i=1;i<=n;i++)
scanf("%d",&tmp);
sum+=tmp;
}
av1=sum*1.00/(60*n);
av2=sum*1.00/(80*n);
if(av1>=0.95&&av2>=0.60)
printf("Yes\n");
else
printf("No\n");
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
double x,a,b,c,m1,m2,m3;
scanf("%lf %lf %lf %lf",&x,&a,&b,&c);
m1=x*a;
m2=x*b;
m3=x*c;
if(m1>m2&&m1>m3)
printf("A %d\n",(int)m1);
else if(m2>m3)
printf("B %d\n",(int)m2);
else
printf("C %d\n",(int)m3);
return 0;
}
#include <stdio.h>
#include <math.h>
int main()
{
int m,n;
double count;
scanf("%d,%d",&m,&n);
count=(ceil)m*n*0.01;
printf("%d\n",(int)count));
return 0;
}