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