【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;
}
posted @ 2018-07-07 14:38  gwj1139177410  阅读(100)  评论(0编辑  收藏  举报
选择