1 条题解

  • 0
    @ 2025-9-17 12:02:16

    本题需强制转换整数类型进行计算

    #include <iostream>
    using namespace std;
    
    int main()
    {
        int d, h;
        scanf("%d %d", &d, &h);
    
        cout << "s=" << ((float)d * (float)h) / 2 << endl;
    
        return 0;
    }
    
    • 1

    信息

    ID
    212
    时间
    1000ms
    内存
    64MiB
    难度
    9
    标签
    递交数
    160
    已通过
    10
    上传者