Files
kattis/monopol.py
2023-06-24 22:46:01 +02:00

7 lines
151 B
Python

P = [0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1]
_ = input()
hotels = list(map(int, input().split()))
print(sum([P[i - 1] for i in hotels if i <= 12]) / 36)