-
백준 2592 대표값파이썬 알고리즘 2022. 1. 25. 21:50
from collections import Counter arr = [int(input()) for _ in range(10)] val = Counter(arr).most_common() print(sum(arr)//10) print(val[0][0])* 참고: from collections Counter()
https://covenant.tistory.com/143'파이썬 알고리즘' 카테고리의 다른 글
백준 2164 카드2 deque (0) 2022.01.26 백준 1927 최소 힙 (0) 2022.01.26 백준 2490 윷놀이 (0) 2022.01.25 백준 2588 (0) 2022.01.25 백준 2309 (0) 2022.01.25