Created
April 17, 2019 11:10
-
-
Save whatalnk/c5561aea8c316cdb6e570f5cd171cf84 to your computer and use it in GitHub Desktop.
Exawizards 2019 B - Red or Blue
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
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