#include <cstdio> using namespace std; int main() { double K; scanf("%lf", &K); double C = K- 273.15; double F = 32 + C * 1.8; if (F > 212) printf("Temperature is too high!\n"); else printf("%.2f %.2f\n", C, F); return 0; }
注册一个 菜鸟OJ 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 菜鸟OJ 通用账户