rubocop that
This commit is contained in:
parent
06fa5766ad
commit
24d5bf53bd
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
input = File.read('./input').split("\n\n")
|
input = File.read('./input').split("\n\n")
|
||||||
|
|
||||||
puts input.map{|g|g.split("\n").join.chars.uniq.count}.sum
|
puts input.map { |g| g.split("\n").join.chars.uniq.count }.sum
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
input = File.read('./input').split("\n\n")
|
input = File.read('./input').split("\n\n")
|
||||||
|
|
||||||
puts input.map{|g|g.split("\n").map{|e|e.chars}.inject(:&).join.chars.uniq.count}.sum
|
puts input.map { |g| g.split("\n").map(&:chars).inject(:&).join.chars.uniq.count }.sum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user