10 lines
178 B
Ruby
10 lines
178 B
Ruby
|
#!/bin/env ruby
|
||
|
|
||
|
text = File.read('./input').split("\n\n")
|
||
|
|
||
|
text.map! do |t|
|
||
|
t.delete("\n").split('').uniq.reduce(:+)
|
||
|
end
|
||
|
size = text.map { |t| t.length }.reduce(:+)
|
||
|
|
||
|
p size
|