fix small mistake
This commit is contained in:
@@ -4,7 +4,7 @@ input = File.read('./input').lines.map(&:to_i)
|
|||||||
|
|
||||||
input.each do |i|
|
input.each do |i|
|
||||||
input.each do |j|
|
input.each do |j|
|
||||||
next if i + j > 2020
|
next if i + j >= 2020
|
||||||
rem = 2020 - i - j
|
rem = 2020 - i - j
|
||||||
|
|
||||||
if input.include? rem
|
if input.include? rem
|
||||||
|
Reference in New Issue
Block a user