4 条题解

  • 3

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

  • 1
    @ 2025-06-27 19:42:19

    #include<bits/stdc++.h>;
    using namespace std;
    int main()
    {
    double K;scanf("%lf",&K);
    double C=K-273.15;
    double F=32+C*1.8;
    if(F>212)
    cout<<"Temperature is too high!";
    else
    cout<<fixed<<setprecision(2)<<C<<" "<<F;

    return 0;
    }

  • 0
    @ 2025-02-23 16:16:16

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

  • 0
    @ 2025-02-23 16:16:07

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

  • 1

信息

ID
2847
难度
8
分类
(无)
标签
递交数
208
已通过
31
通过率
15%
上传者