#include<cstdio>
#include<algorithm>
using namespace std;
int main()
{
double m1,m2,m3,m4,m5,w1,w2,w3,w4,w5,h1,h2;
double ans1,ans2,ans3,ans4,ans5,ans;
for(int i=1;i<=5;i++)
{
scanf("%lf %lf %lf %lf %lf",&m1,&m2,&m3,&m4,&m5);
scanf("%lf %lf %lf %lf %lf\n%lf %lf",&w1,&w2,&w3,&w4,&w5,&h1,&h2);
}
ans1=max(150.0,(1-m1/250)*500-50*w1);
ans2=max(300.0,(1-m2/250)*1000-50*w2);
ans3=max(450.0,(1-m3/250)*1500-50*w3);
ans4=max(600.0,(1-m4/250)*2000-50*w4);
ans5=max(750.0,(1-m5/250)*2500-50*w5);
ans=ans1+ans2+ans3+ans4+ans5+100*h1-50*h2;
printf("%.0lf\n",ans);
return 0;
}
【codeforces】-604A-Uncowed Forces(水)
最新推荐文章于 2018-06-17 15:31:00 发布