This commit is contained in:
2023-06-24 22:46:01 +02:00
parent 7c4fc5880b
commit f45b597271

6
monopol.py Normal file
View File

@@ -0,0 +1,6 @@
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)