统计计算
代码:
import os import sys # 请在此输入您的代码 n = int(input()) jige, youxiu = 0, 0 for i in range(n) : m = int(input()) if m >= 85 : youxiu+=1 elif m >= 60: jige += 1 youxiulu = str(round(youxiu/n*100)) hegelu = str(round((jige+youxiu)/n*100)) print(hegelu+'%') print(youxiulu+'%')