Skip to content

Instantly share code, notes, and snippets.

@jakab922
Created April 22, 2018 20:54
Show Gist options
  • Save jakab922/70700f611e5b785cc35d15b2e0c70157 to your computer and use it in GitHub Desktop.
Save jakab922/70700f611e5b785cc35d15b2e0c70157 to your computer and use it in GitHub Desktop.
n = int(raw_input().strip())
acc = []
for _ in xrange(n):
c = int(raw_input().strip())
if c >= 90:
acc.append(c)
if acc:
print "%.2f" % (sum(acc) / float(len(acc)))
else:
print "0.00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment