C++ :
#include<bits/stdc++.h> using namespace std; int main(){ double k; cin>>k; double c=k-273.15; double f=c*1.8+32; if(f>212){ cout<<"Temperature is too high!"; return 0; } printf("%.2f %.2f",c,f); return 0; }
注册一个 BestWit 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 BestWit 通用账户