Skip to content

Instantly share code, notes, and snippets.

@yutokyokutyo
Created December 25, 2019 03:38
Show Gist options
  • Save yutokyokutyo/5b4736afa4999cd10ed896bbedc34b1f to your computer and use it in GitHub Desktop.
Save yutokyokutyo/5b4736afa4999cd10ed896bbedc34b1f to your computer and use it in GitHub Desktop.
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