4 条题解
- 1
信息
- ID
- 92
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 1
- 标签
- 递交数
- 262
- 已通过
- 194
- 上传者
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double a;
cin>>a;
cout<<fixed<<setprecision(12)<<a;//这个代码很难背。
return 0;
}
这道题也挺简单的,跟前面3位的没啥区别,一看就老演员了
代码:
#include<cstdio>
using namespace std;
int main()
{
double x;
scanf("%lf",&x);
printf("%.12lf",x);
}
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
double n;
cin >> n;
cout << fixed << setprecision(12) << n << endl;
return 0;
}
可以给你代码加上cpp 效果会很好