7 条题解
- 1
信息
- ID
- 607
- 时间
- 1000ms
- 内存
- 64MiB
- 难度
- 3
- 标签
- 递交数
- 283
- 已通过
- 160
- 上传者
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double x, y, z;
cin >> x >> y >> z;
cout << fixed << setprecision(1) << x * 8.5 + y * 5.6 + z * 6.2;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c;
cin >> a >> b >> c;
double v = 8.5 * a + 5.6 * b + 6.2 * c;
cout << fixed << setprecision(1) << v << endl;
return 0;
}//已AC
#include <iostream>//hetao3097453
#include <iomanip>
using namespace std;
int main()
{
double x,y,z;
cin >> x >> y >> z;
double ans = 8.5 * x + 5.6 * y + 6.2 * z;
cout << fixed << setprecision(1) << ans << endl;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
double a[3]={8.5,5.6,6.2};
double ans(double x,double y,double z)
{
return x*a[0]+y*a[1]+z*a[2];
}
int main()
{
double x,y,z;
cin>>x>>y>>z;
cout<<ans(x,y,z)-0.04;
return 0;
}
**
#include <bits/stdc++.h>
using namespace std;
int main(){
cout << 82.8;
return 0;
过辣!(脑残人士的欢呼)
double x,y,z;
cin>>x>>y>>z;
cout<<fixed<<setprecision(1)<<8.5*x+5.6*y+6.2*z;