fork download
  1. b, g = gets.chomp.split(" ")
  2. b = b.to_i
  3. g = g.to_i
  4. if b > g
  5. puts ("BG" * g + "B" * (b-g))
  6. else
  7. puts ("GB" * g + "G" * (b-g))
  8. end
Success #stdin #stdout 0.02s 7412KB
stdin
3 3
stdout
GBGBGB