Day 01
This commit is contained in:
8
day_01/first.rb
Normal file
8
day_01/first.rb
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
input = File.read('./input').lines.map(&:to_i)
|
||||
|
||||
input.each do |i|
|
||||
input.each do |j|
|
||||
(puts i*j; return) if i + j == 2020
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user