#include <bits/stdc++.h>
using namespace std;
int main(){
float h;// 记住,题目说单精度“float”Hmm……我也陷过的
cin >> h;
cout << fixed << setprecision(3) << h ;
}
这题我原来90分,写成“double”,现在我过了。
#include <bits/stdc++.h>
using namespace std;
int main(){
float h;// 记住,题目说单精度“float”Hmm……我也陷过的
cin >> h;
cout << fixed << setprecision(3) << h ;
}
这题我原来90分,写成“double”,现在我过了。