M–Maimai DX 2077
简单模拟+读题 (比赛时没读懂,英语太差 )
计算achievement score= a/A x100% + b/B x1%,其中,
standard points: each type of NOTE, you can get some according to the judgment.
extra points: For BREAK NOTEs, you can get some according to the judgment.
a:be the standard points you have
b:extra points you have
A: be the standard points you will have if you get CRITICAL PERFECT on every NOTE
B: be the extra points you will have if you get CRITICAL PERFECT on every NOTE,
/**/
#include<bits/stdc++.h>
using namespace std;
double a,b,c,d,e;
double A=0,A1=0,B=0,B1=0;
int main(){
cin>>a>>b>>c>>d>>e;
A+=(a+b+c+d+e)*1;
A1+=(a+b)*1+c*0.8+d*0.5;
cin>>a>>b>>c>>d>>e;
A+=(a+b+c+d+e)*2;
A1+=(a+b)*2+c*1.6+d*1;
cin>>a>>b>>c>>d>>e;
A+=(a+b+c+d+e)*3;
A1+=(a+b)*3+c*2.4+d*1.5
cin>>a>>b>>c>>d>>e;
A+=(a+b+c+d+e)*5;
A1+=(a+b)*5+c*2.5+d*2;
B=(a+b+c+d+e)*1;
B1=a*1+b*0.5+c*0.4+d*0.3;
printf("%.9lf",A1*100/A +B1/B);//注意
//printf("%.9lf",A1*100/A +B1*0.01/B); 错误
}