Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created April 17, 2019 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/c5561aea8c316cdb6e570f5cd171cf84 to your computer and use it in GitHub Desktop.
Save whatalnk/c5561aea8c316cdb6e570f5cd171cf84 to your computer and use it in GitHub Desktop.
Exawizards 2019 B - Red or Blue
n = gets.chomp.to_i
s = gets.chomp
r = 0
b = 0
n.times do |i|
if s[i] == "R"
r += 1
else
b += 1
end
end
if r > b
puts "Yes"
else
puts "No"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment