直接模拟计算即可。
x = int(input())
y = int(5 * (x - 32) / 9)
print("Celsius =" , y)
#include <bits/stdc++.h>
using namespace std ;
long long x ;
int main() {
cin >> x ;
cout << "Celsius = " << 5 * (x - 32) / 9 ;
return 0 ;
}
- 时间复杂度:。
- 空间复杂度:。
- 难度:下位红。
暂无评论