fork download
  1. # your code goes here
  2. 5.times { puts gets.chomp.scan(/^A (.+) B$/) }
Success #stdin #stdout 0.01s 7468KB
stdin
A 단어1 B
C 단어2 D
A 단어3 B
A 단어4 E
A 단어5 B
stdout
단어1
단어3
단어5