Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155822 吴梓滔 温度转换 C++ Accepted 1 MS 200 KB 273 2026-06-14 09:41:12

Tests(1/1):


Code:

#include <stdio.h> #include <math.h> int main() { double fahrenheit; scanf("%lf", &fahrenheit); double celsius = 5.0 / 9.0 * (fahrenheit - 32); celsius = round(celsius * 100) / 100; printf("%.2f\n", celsius); return 0; }