1 条题解

  • 0
    @ 2026-4-5 20:12:09

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        double k;
        cin>>k;
        double c=k-273.15;
        double f=c*1.8+32;
        if(f>212){
            cout<<"Temperature is too high!";
            return 0;
        }
        printf("%.2f %.2f",c,f);
        return 0;
    }
    
    • 1

    信息

    ID
    601
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者