Codeforces: B. Drinks


The problem is from codeforces: http://codeforces.com/problemset/problem/200/B

200B Codeforces: B. Drinks algorithms beginner codeforces implementation math non-technical python

This is another easy problem as long as you figure out how to compute the value. For example,

The answer = tex_2121b4421d246880c0bba4768cf2a674 Codeforces: B. Drinks algorithms beginner codeforces implementation math non-technical python

Python gives two lines of solution.

#!/usr/bin/env python 
n = int(raw_input()) 
print "%.8f" % (sum([x for x in map(int, raw_input().split(' '))]) / float(n))

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
185 words
Last Post: Codeforces: A. Hexadecimal's theorem
Next Post: Constructor and Destructor in Python Classes

The Permanent URL is: Codeforces: B. Drinks

Leave a Reply