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

require 'zipf'

f = ReadFile.new ARGV[0]
g = ReadFile.new ARGV[1]

while line1 = f.gets
  line2 = g.gets
  d = line1.to_f - line2.to_f
  puts d
end