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

require 'zipf'

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

a.sort!

puts a[a.size/2]