import sys
input = sys.stdin.readline
def roundd(num):
"""
자체 반올림 함수
"""
if ((num % 1) < 0.5):
return int(num // 1)
else:
return int(num // 1 + 1)
asd = int(input())
llst = []
if asd == 0:
print(0)
else:
for _ in range(asd):
llst.append(int(input()))
llst = sorted(llst)
delNum = roundd((len(llst) * 3) / 20)
# 삭제할 인원수를 구함
llst = llst[delNum : len(llst) - delNum]
ave = sum(llst) / len(llst)
print(roundd(ave))
'Coding Test Practice > python' 카테고리의 다른 글
(Python) 백준 5430 / AC (0) | 2024.07.12 |
---|---|
(Python) 백준 1003 / 피보나치 함수 (0) | 2024.05.01 |
(Python) 백준 15829 / Hashing (0) | 2024.05.01 |
(Python) 백준 2108 / 통계학 (0) | 2024.05.01 |
(Python) 백준 7568 / 덩치 (0) | 2024.04.30 |