4 条题解

  • 1
    @ 2025-1-11 9:58:38

    看一眼公式再食用此tj吧。 根据简单推导可写出如下代码:

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        long double F;
        cin>>F;
        cout<<fixed<<setprecision(5)<<5*(F-32)/9.0;
        return 0;
    }
    
    • 0
      @ 2025-2-14 17:49:59
      #include<bits/stdc++.h>
      #define yy return 0;
      using namespace std;
      double a;
      int main(){ cin>>a;cout<<fixed<<setprecision(5)<<5*(a-32)/9;yy }
      • -1

        #include<bits/stdc++.h>

        using namespace std;

        int main(){ double F,C; cin>>F; C=5*(F-32)/9; cout<<fixed<<setprecision(5)<<C;

        }

        • -3
          #include <bits/stdc++.h>
          using namespace std;
          double C,F;
          int main(){
          	cin>>F;
          	C=5*(F-32)/9;
          	cout<<fixed<<setprecision(5)<<C;
              return 0;
          }
          • 1

          信息

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