6 条题解
- 1
信息
- ID
- 610
- 时间
- 1000ms
- 内存
- 64MiB
- 难度
- 1
- 标签
- 递交数
- 228
- 已通过
- 150
- 上传者
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n;
cin >> n;
cout << fixed << setprecision(1) << n * 0.9;
return 0;
}已AC
kao,没看到平均成绩……
过辣!(脑残人士的欢呼)
long long x;
cin>>x;
cout<<fixed<<setprecision(1)<<(x+x*0.8+x*0.9)/3;
one:
#include <bits/stdc++.h>
using namespace std;
double a;
int main()
{
cin >> a;
cout << (a * 0.8 + a * 0.9 + a) / 3;
return 0;
}
two:
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << 7.2;
return 0;
}
#include <iostream>//hetao3097453
#include <iomanip>
using namespace std;
int main()
{
double x;
cin >> x;
double x2 = x * 0.8;
double x3 = x * 0.9;
double ans = (x + x2 + x3) / 3;
cout << fixed << setprecision(1) << ans << endl;
return 0;
}
#include <iostream>
#include <iomanip> //流控制头文件函数库
using namespace std;
int main()
{
int n; //定义变量n
cin >> n; //输入n
cout << fixed << setprecision(1); //保留一位小数
cout << (n + n * 0.8 + n * 0.9) / 3 << endl; //输出张晓峰的平均成绩
return 0;
}