[2016][ruby][15.1]
change qkqznzwtxksptkwkxvptpksvnssytkzk
commit 1e88183bd727dac121ff9db5bf323fc66770c4fb
author Alpha Chen <alpha.chen@gmail.com>
date
parent mvolyzrp
diff --git a/2016/ruby/day_15.rb b/2016/ruby/day_15.rb
index 36b9ae0..3a3c131 100644
--- a/2016/ruby/day_15.rb
+++ b/2016/ruby/day_15.rb
@@ -8,6 +8,7 @@ discs = DATA.each_line.map {|line|
   /Disc #\d has (?<positions>\d+) positions; at time=0, it is at position (?<position>\d+)./ =~ line
   Disc.new(positions.to_i, position.to_i)
 }
+discs << Disc.new(11, 0)
 
 p (0..Float::INFINITY).find {|t|
   discs.each.with_index.all? {|disc, index|
@@ -16,5 +17,3 @@ p (0..Float::INFINITY).find {|t|
 }
 
 __END__
-Disc #1 has 5 positions; at time=0, it is at position 4.
-Disc #2 has 2 positions; at time=0, it is at position 1.