#include<bits/stdc++.h>
using namespace std;
int main()
{
double f, c;
cin>>f;
c=5.0/9.0*(f-32);
cout<<fixed<<setprecision(3)<<c;
return 0;
}答案正确:恭喜!您提交的程序通过了所有的测试用例
?
#include<bits/stdc++.h>
using namespace std;
int main()
{
float f, c;
cin>>f;
c=5.0/9.0*(f-32.0);
cout<<fixed<<setprecision(3)<<c;
return 0;
}答案错误:您提交的程序没有通过所有的测试用例
case通过率为40.00%
#include<bits/stdc++.h>
using namespace std;
int main()
{
float f, c;
cin>>f;
c=5.0/9.0*(f-32.0);
cout<<fixed<<setprecision(3)<<c<<;//setprecision(x)小数x位,fixed小数位数不够补零
return 0;
}编译错误:您提交的代码无法完成编译
a.cpp: In function 'int main()':
a.cpp:8:38: error: expected primary-expression before ';' token
cout< ^
?
...多了<<



京公网安备 11010502036488号