1 条题解

  • 0
    @ 2025-2-14 20:39:29

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
        float c,f;
        cin>>c;    
        f=9.0/5*c+32;
        cout.precision(2);
        cout.setf(ios::fixed);
        cout<<f<<endl;
       // system("pause");
        return 0;
    }
    

    Python :

    # coding=utf-8
    c=int(input())
    print('%0.2f'%(9/5*c+32))
    
    • 1

    信息

    ID
    324
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    1
    已通过
    1
    上传者