2 条题解

  • 1
    @ 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;
    }
    
    • 0
      @ 2025-10-13 11:37:04

      Python:

      scores = list(map(int,input().strip().split()))
      average = sum(scores)/len(scores)
      print('%.3f' % average)
      
      • 1

      信息

      ID
      27
      时间
      1000ms
      内存
      256MiB
      难度
      5
      标签
      递交数
      24
      已通过
      13
      上传者