logo AlgoBeat OnlineJudge
登录 注册

TJ

作者: chong1010 封禁用户  ·  发布于 2026-10-22 23:42:50  ·  最后修改于 2026-10-24 11:17:40
已通过
审核员:AlgoBeat 官方账号 · 2026-10-24 11:17:40

直接模拟计算即可。

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 ;
}
  • 时间复杂度:。
  • 空间复杂度:。
  • 难度:下位红。

暂无评论

登录 后即可评论。