F=95C+32F = \frac{9}{5}C + 32F=59C+32
C=59C×(F−32)C = \frac{5}{9}C \times (F-32)C=95C×(F−32)
評分結果(參考) : AC (2ms, 332KB)
#include <bits/stdc++.h> using namespace std; int main(){ double f; scanf("%lf", &f); printf("%.3lf\n", (f-32) * 5/9); return 0; }