728x90 반응형 SMALL programming158 백준) 1546번 - python divide = int(input()) grade = list(map(int, input().split(" "))) total,average = 0,0 for i in range(divide): total += grade[i] / max(grade) * 100 average = total / divide print(average) 2024. 2. 8. 백준) 1152번 - python S = input().split() print(len(S)) 2024. 2. 7. 백준) 1037번 - python a = int(input()) b = list(map(int, input().split())) lst = [] for i in range(a): lst.append(b[i]) lst.sort() if a % 2 == 0: print(lst[0] * lst[-1]) else: print(lst[int(a/2)] ** 2) 2024. 2. 6. 백준) 11654번 - python a = input() print(ord(a)) 2024. 2. 5. 이전 1 ··· 34 35 36 37 38 39 40 다음 728x90 반응형 LIST