728x90
반응형
단순 수학 문제이다.
사실 답은 항상 1.00이다.
N = int(input())
if N == 0:
print("divide by zero")
else:
li = list(map(int, input().split()))
ans = sum(li)/N / (sum(li)/N)
print("%.2f" % ans)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 16017번 Telemarketer or not?(python) (0) | 2021.02.08 |
---|---|
백준 알고리즘 15963번 CASIO(python) (0) | 2021.02.08 |
백준 알고리즘 15873번 공백 없는 A+B(python) (0) | 2021.02.07 |
백준 알고리즘 15726번 이칙연산(python) (0) | 2021.02.07 |
백준 알고리즘 15700번 타일 채우기 4(python) (0) | 2021.02.07 |