[백준/파이썬] 25374번 등급 계산하기
-Codegrade = [0, 4, 11, 23, 40, 60, 77, 89, 96, 100, 101]res = [0] * 9n = int(input())points = sorted(list(map(int, input().split())), reverse=True)set_point = sorted(list(set(points)), reverse=True)total, temp, idx = 0, 0, 0for p in set_point: temp += points.count(p) total += points.count(p) if grade[idx + 1]
2024. 6. 14.