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;

    }

    • 0
      @ 2023-8-16 0:19:31

      #include<stdio.h> int main() {int a,b,c,sum; scanf("%d %d %d",&a,&b,&c); sum=a0.2+b0.3+c*0.5; printf("%d",sum); return 0; }

      • 1

      信息

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