【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;
}

猜你喜欢

转载自blog.csdn.net/qq_33957603/article/details/80951257