[2016][ruby][11.0] solution!
change ovtpqsonxknxomkqvlrsqyqvwrlvzzsp
commit b26163f42e3053a1dc2b7bad3fc336ee0e73e6a0
author Alpha Chen <alpha.chen@gmail.com>
date
parent ryllkorn
diff --git a/2016/ruby/day_11.rb b/2016/ruby/day_11.rb
index cc10bd0..426521e 100644
--- a/2016/ruby/day_11.rb
+++ b/2016/ruby/day_11.rb
@@ -83,10 +83,10 @@ end
 
 if __FILE__ == $0
   INPUT = <<-INPUT
-F4 .  .  .  .  .
-F3 .  .  .  LG .
-F2 .  HG .  .  .
-F1 E  .  HM .  LM
+F4 .
+F3 .  CoM CuM RM PlM
+F2 .  CoG CuG RG PlG
+F1 E  PrG PrM
   INPUT
 
   Step = Struct.new(:state, :count)
@@ -96,11 +96,14 @@ F1 E  .  HM .  LM
   until steps.empty? do
     step = steps.shift
 
-    puts
-    puts "Steps: #{step.count}"
-    puts step.state
+    # puts
+    # puts "Steps: #{step.count}"
+    # puts step.state
 
     if step.state.floors[0..-2].all?(&:empty?)
+      puts
+      puts "Steps: #{step.count}"
+      puts step.state
       exit
     end