blob: b2fdeea20c76b841f8ec254f792ce1802684da00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/opt/local/bin/python
#
# See ../README.md
#
#
# Run as: python ch-1.py < input-file
#
import fileinput
s = 0
c = 0
for n in fileinput . input ():
s = s + int (n)
c = c + 1
print (s // c)
|