【NOIP2017】【Luogu3954】成绩(模拟)
problem
- 给你三个数A,B,C
- 求A*0.2+B*0.3+C*0.5的值。
solution
- 这不是语法题吗
- 我都要不好意思出来发文章了
codes
#include<iostream>
using namespace std;
int main(){
int A, B, C;
cin>>A>>B>>C;
cout<<A*0.2+B*0.3+C*0.5<<'\n';
return 0;
}
#include<iostream>
using namespace std;
int main(){
int A, B, C;
cin>>A>>B>>C;
cout<<A*0.2+B*0.3+C*0.5<<'\n';
return 0;
}
选择 | ||
|