This commit is contained in:
2020-12-01 11:45:43 +01:00
commit c24ac8ed4f
4 changed files with 226 additions and 0 deletions

8
day_01/first.rb Normal file
View 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