| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150016 | 徐英杰 | 11温度转换II | C++ | Wrong Answer | 1 MS | 272 KB | 358 | 2026-03-21 16:12:09 |
#include<iostream> #include<iomanip> using namespace std; int main() { /* *保留n位小数 *printf("%.nlf",a); * *使用cout格式化输出:#include<iomanip> *保留n位小数: *cout<<fixed<<setprecision(n)<<a; * */ int a; cin>>a; printf("%.4lf\n",(a-32.0)*5.0/9.0); return 0; }
------Input------
9.8
------Answer-----
-12.3333
------Your output-----
-12.7778