1 条题解

  • 0
    @ 2024-12-24 9:54:27

    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
    1057
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者