diff --git a/monopol.py b/monopol.py new file mode 100644 index 0000000..5015029 --- /dev/null +++ b/monopol.py @@ -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)