2 条题解

  • 0
    @ 2025-6-17 23:50:27

    #include <stdio.h> #include <math.h>

    int main() { int A, B, C; scanf("%d %d %d", &A, &B, &C);

    double total = A * 0.2 + B * 0.3 + C * 0.5; int rounded = (int)round(total);

    printf("%d\n", rounded); return 0;

    }

    信息

    ID
    72
    时间
    1000ms
    内存
    256MiB
    难度
    2
    标签
    (无)
    递交数
    1179
    已通过
    691
    上传者