Created
December 25, 2019 03:38
-
-
Save yutokyokutyo/5b4736afa4999cd10ed896bbedc34b1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rooms = %w[ | |
] | |
names = %w[ | |
] | |
names.take(1000).each{ |name| | |
line = rooms.find { |room| | |
number,name1,name2 = room.split(",") | |
name1 == name || name2 == name | |
} | |
binding.irb if line.nil? | |
puts line.split(",")[0] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment