summaryrefslogtreecommitdiff
path: root/median
blob: 9499c95e10d7c8c4378d23fb25e0c1e14ac9ae31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

require 'zipf'


a = []
while line = STDIN.gets
  a << line.to_f
end

a.sort!

puts a[a.size/2]