1 条题解

  • 0
    @ 2025-10-11 10:40:50

    需要使用double类型而不是float

    #include <stdio.h>
    int main()
    {
        double x, y;
        scanf("%lf%lf", &x, &y);
        double ans = 3.1415926 * x / 2 * y / 2;
        printf("%.4f", ans);
        return 0;
    }
    
    • 1

    信息

    ID
    487
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    1093
    已通过
    192
    上传者