2 条题解

  • 0
    @ 2025-10-22 20:13:38

    #include <stdio.h> #include <math.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); int sum=a+b+c; int product=abc; double average=sum/3.0; printf("%d %d %.2f\n",sum,product,average); return 0;

    }

    • 0
      @ 2024-5-30 23:05:22
      #include <iostream>
      #include <cstring>
      #include <algorithm>
      using namespace std;
      int main()
      {
          int a , b ,c;
          cin >> a >> b >>c;
          cout << (a + b + c) <<" " <<(a  * b * c)<<" ";
          double avg = 1.0*(a + b + c) / 3;
          printf("%.2f",avg);
          
      }
      
      • 1

      信息

      ID
      197
      时间
      1000ms
      内存
      128MiB
      难度
      1
      标签
      递交数
      1300
      已通过
      437
      上传者