3 条题解
- 1
信息
- ID
- 117
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- (无)
- 递交数
- 188
- 已通过
- 61
- 上传者
#include <iostream>//关注b站海绵经验包
#include <iomanip>
using namespace std;
int main() {
double b;
cin >> b;
cout << (int)a << endl;
cout << fixed << setprecision(2) << a << endl;
cout << fixed << setprecision(?) << a << endl;
return 0;
}
#include<bits/stdc++.h>//关注b站阿秋--一只小绵羊 using namespace std; int main() { double b; cin >> b; cout <<int(b) << endl; cout << fixed << setprecision(2) << b << endl; cout << fixed << setprecision(0) << b << endl; return 0; }