2 条题解

  • 1
    @ 2026-9-25 13:27:20
    # 读入人数
    n = int(input())
    # 读入成绩列表
    scores = list(map(int, input().split()))
    # 计算平均分
    avg = sum(scores) / n
    # 保留两位小数输出
    print("{0:.2f}".format(avg))
    
    
    • -1
      @ 2024-2-6 12:58:24
      a = int(input())
      b = input().split()
      c=0.00
      for i in range(a):
          b[i]=int(b[i])
      for i in range(a):
          c = float(c+b[i])
          k=c/a
          r = "%.2f" % k
          print(r)
      
      • 1

      信息

      ID
      1372
      时间
      1000ms
      内存
      128MiB
      难度
      6
      标签
      递交数
      28
      已通过
      11
      上传者