#include<bits/stdc++.h> using namespace std; int main(){ double a;// double 双精度小数 cin>>a; printf("%.3lf",a);//保留小数位数方法 return 0; }
使用您的 编译未来 通用账户