2 条题解

  • 0
    @ 2025-10-13 11:37:04

    Python:

    scores = list(map(int,input().strip().split()))
    average = sum(scores)/len(scores)
    print('%.3f' % average)
    
    • 0
      @ 2024-7-25 12:34:23

      参考答案:

      #include<iostream>
      
      using namespace std;
      
      int main()
      {
          double a, b, c, d, e;
          cin >> a >> b >> c >> d >> e;
      
          printf("%.3f", (a + b + c + d + e) / 5);
      
          return 0;
      }
      
      • 1

      信息

      ID
      27
      时间
      1000ms
      内存
      256MiB
      难度
      8
      标签
      递交数
      17
      已通过
      7
      上传者