Monopoly
This commit is contained in:
6
monopol.py
Normal file
6
monopol.py
Normal 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)
|
||||||
Reference in New Issue
Block a user