Problem:


Score : 200 points

Problem Statement

There are N people numbered 1 to N. Each person wears a red hat or a blue hat.

You are given a string s representing the colors of the people. Person i wears a red hat if s_i is R, and a blue hat if s_i is B.

Determine if there are more people wearing a red hat than people wearing a blue hat.

Constraints

1 \leq N \leq 100

|s| = N

s_i is R or B.

Input

Input is given from Standard Input in the following format:

N
s

Output

If there are more people wearing a red hat than there are people wearing a blue hat, print Yes; otherwise, print No.

Sample Input 1

4
RRBR

Sample Output 1

Yes

There are three people wearing a red hat, and one person wearing a blue hat.

Since there are more people wearing a red hat than people wearing a blue hat, the answer is Yes.

Sample Input 2

4
BRBR

Sample Output 2

No

There are two people wearing a red hat, and two people wearing a blue hat.

Since there are as many people wearing a red hat as people wearing a blue hat, the answer is No.



Sample input:
4
RRBR


Sample output:
Yes

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys

def parse_input(lines_as_string = None):


    lines = []
    if lines_as_string is None:
        lines.append(input())
        tokens = lines[0].split(" ")
        n = tokens[0]
        lines.append(input())
    else:
        lines = [e for e in lines_as_string.split("\n")][1:-1]
        tokens = lines[0].split(" ")
        n = tokens[0]

    s = lines[1]


    return (n, s)


def solve(n, s):



    sum_r = len([1 for c in s if c == "R"])

    result = "No"
    if sum_r > int(n) - sum_r:
        result = "Yes"

    return result

def main():
    # 出力

    print("%s" % solve(*parse_input()))

if __name__ == '__main__':

    main()

Submission status: Accepted

Solution code:
input()
s = input()
if s.count("R") > s.count("B"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())
a=0
b=0
for i in s:
  if i == 'R':
    a+=1
  else:
    b+=1
if a>b:
  print('Yes')
elif a<b or a==b:
  print('No')

Submission status: Accepted

Solution code:
a=int(input())
b =list(input())

c=b.count("R")
d=b.count("B")
if c>d:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
num = s.count("R")
if num > n/2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
str =input()

S = str.count("R")
if S > N//2 :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
member = int(input())
line = list(input())
if line.count("R") > line.count("B"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

input_lines = input().split()
N = int(input_lines[0])
s = input()
count = 0
for i in range(N):
    if s[i] == 'R':
        count += 1
        if count > N/2:
            print("Yes")
            sys.exit()
print("No")

Submission status: Accepted

Solution code:
n=input()
s = input()
r_cnt = 0
b_cnt = 0
for color in s:
  if color == 'R':
    r_cnt += 1
  else:
    b_cnt += 1
else:
  if r_cnt > b_cnt:
    print('Yes')
  else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = input()
rc = s.count('R')
if rc > n-rc:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys

# Nの読み込み
N = int(input())

# sを読み込み，1文字づつリストへ流す
str_list = list(input())

# Rの数を数える
# Bの数はN-R_num
R_num = 0
for s in str_list:
    if s=='R':
        R_num += 1

# R_num, B_numを比較
if R_num > (N-R_num):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())
cntA = 0
cntB = 0

for i in  s:
    if i == "R":
        cntA = cntA + 1
    else:
        cntB = cntB + 1
        
if cntA > cntB:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = [i for i in input()]

red = s.count('R')
blue = s.count('B')

if red > blue:
  print('Yes')
else:
  print ('No')

Submission status: Accepted

Solution code:
N=int(input())
st=input()
R_num = st.count('R')

if R_num*2 > N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
s = input()

r = 0
b = 0
for s_i in s:
    if s_i == 'R':
        r += 1
    else:
        b += 1

if r > b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
s = input()
R = 0
B = 0

for c in s:
  if c == 'R':
  	R = R+1
  else:
    B = B+1

if R > B:
       print ("Yes")
else:
      print("No")

Submission status: Accepted

Solution code:
n = int(input())
lis = list(input())
c = 0
for item in lis:
  if item == "R":
    c += 1
  else:
    c -= 1
if c > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())
data = stdin.readline().rstrip().split()
s = str(data[0])
count_red, count_blue = 0,0
for i in range(len(s)):
    if s[i] == "R":
        count_red += 1
    else:
        count_blue += 1

if count_red > count_blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

print("Yes" if s.count('R') > s.count('B') else "No")

Submission status: Accepted

Solution code:
N = int(input())
s = [i for i in input()]
c = s.count('R')
print(['No','Yes'][c > N-c])

Submission status: Accepted

Solution code:
n = float(input())
s = input().count('R')

if 2.0 > (n / s):
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())

num=0

for s in input():
    if s=="R":
        num+=1
    else:
        num-=1

if num>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=input()
s=list(input())
x=s.count('R')
y=s.count('B')
if x>y:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input());
s = list(input());

i = 0;
for index in range(n):
    if s[index] == "R":
        i = i + 1;

if i > n/2:
    print("Yes");
else:
    print("No")

Submission status: Accepted

Solution code:
N=int(input());s=input();r=0;b=0;
for char in s:
  if char=='R':
    r+=1
  else:
    b+=1
    
if r>b:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
# a, b, c = list(map(int, input().split()))
n = int(input())
r = 0
for p in input().strip():
    if p == "R":
        r += 1
if n - r >= r:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
# # # coding=utf-8
# # # Author: lee215

get = lambda: int(raw_input().strip())
getl = lambda: raw_input().strip()
gets = lambda: map(int, raw_input().strip().split())
getss = lambda n: [gets() for _ in xrange(n)]

# 2019-03-30 20:18
N = get()
S = getl()


if S.count('R') > S.count('B'):
    print 'Yes'
else:
    print 'No'

Submission status: Accepted

Solution code:

N = int(input())
S = input()

print("Yes" if S.count('R') > N/2 else "No")

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())
cnt_r = 0
cnt_b = 0
for i in range(N):
    if s[i] == "R":
        cnt_r += 1
    elif s[i] == "B":
        cnt_b += 1
if cnt_r > cnt_b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
number = int(input())
hat_color = list(input())
R_number = hat_color.count('R')
B_number = hat_color.count('B')

if R_number <= B_number:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
from sys import stdin
import math
import itertools


def makeIntMatrix(lines):
    intMatrix = []
    for a in makeStringMatrix(lines):
        intMatrix.append([int(b) for b in a])
    return intMatrix
 
 
def makeStringMatrix(lines):
    stringMatrix = [line.split() for line in lines]
    return stringMatrix
 
 
def makeInt(line):
    return int(line.rstrip())
 
 
def makeMultiInteger(line):
    return [int(x) for x in line.rstrip().split()]


def solve(input_string):
    N = input_string[0].rstrip()
    array = input_string[1].rstrip()
    c_b = 0
    c_r = 0
    for t in array:
        if t == 'R':
            c_r += 1
        else:
            c_b += 1
    if c_r > c_b:
        return "Yes"
    return "No"


def main():
    input_lines = stdin.readlines()
    answer = solve(input_lines)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = input()
s = input()
num_R = s.count('R')
num_B = s.count('B')
if num_R > num_B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
string=input()
cnt=0
for color in string:
  if color == "R":
    cnt += 1
  else:
    cnt += -1

if cnt > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

if s.count('B') < s.count('R'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=int(input())
S=input()
count=0
for i in range(N):
  if S[i]=='R':
    count+=1
if N/2 < count:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=int(input())
s = input()
#print(s)
r = 0
b = 0
for i in s:
    if i == "R":
        r += 1
    if i == "B":
        b += 1

if r <= b:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
n = int(input())
s = sorted(list(input()))
ans = 'No'
if n%2==1:
    if s[n//2]=='R':
        ans = 'Yes'
elif s[n//2-1]=='R':
    ans = 'Yes'

print(ans)

Submission status: Accepted

Solution code:
input()
s = input()
if s.count('R') > s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())
if s.count('R') > s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=input()
s=input()
if s.count('R')>s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
n = int(input())
s = input().strip()

m = s.count('B')

if m < n-m:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
s=input()
res=0
for i in s:
    if i=="R":
        res+=1
if res>n/2:
    print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
RED = 0
BLUE = 0

for i in range(N):
  if s[i] == 'R':
    RED += 1
  else:
    BLUE += 1
    
if RED > BLUE:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

rn = len([i for i in s if i=="R"])
bn = N - rn
print("Yes" if rn > bn else "No")

Submission status: Accepted

Solution code:
input()
colors = [c == 'R' for c in input()]
print('Yes' if 2*sum(colors) > len(colors) else 'No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
R_count = 0
B_count = 0

for i in s:
    if i == "R":
        R_count += 1
    elif i == "B":
        B_count += 1
        
print("Yes" if R_count > B_count else "No")

Submission status: Accepted

Solution code:
N=int(input())
s=str(input())
if s.count('R')>s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input())
s=list(input())
r=0
b=0
for i in range(n):
  if s[i]=="R":
    r=r+1
  else:
    b=b+1
if r>b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
from sys import stdin

N = int(stdin.readline())
s = stdin.readline()

count = 0

for i in range(N):
    if s[i:i+1] == 'R':
        count += 1

if count * 2 > N:
    print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

blue_counter=0
red_counter=0

for i in s:
    if(i=="R"):
        red_counter+=1
    else:
        blue_counter+=1

if(red_counter>blue_counter):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
N = int(input())
s = list(input())
red = 0
blue = 0

for i in range(N):
    if s[i] == 'R':
        red += 1
    elif s[i] == 'B':
        blue += 1

if red > blue:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#
import sys
import math
import numpy as np
import itertools

# ひとつ入力
n = int(input())
# 文字列をリストに
s = list(input())
count_r = 0
count_b = 0
for i in range(n):
    if s[i] == 'R':
        count_r += 1
    else:
        count_b += 1

if count_r > count_b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
all_cap = int(input())
human = input()

red = 0
for part in human:
    if part == "R":
        red += 1

if (red * 2) > all_cap:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
n = int(input())
str = input()

red = 0

for i in range(n):
    if str[i] == 'R':
        red += 1

if red > n / 2:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
s = input()

c_R = 0
c_B = 0
for string in s:
    if string == 'R':
        c_R+=1
    else:
        c_B+=1

if c_R > c_B:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

Solution code:
a = input()
c = input()

b = c.count("B") 
r = c.count("R")
if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = input()
r = S.count("R")
b = S.count("B")
if r > b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def main():
    n = int(input()) // 2
    numR = 0
    for c in input():
        if c == 'B':
            continue
        numR += 1

        if numR > n:
            print("Yes")
            return
    print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
S = input()

R_num = 0

for char in S:
    if char == 'R':
        R_num += 1

if R_num > N / 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
S = list(input())
r = 0
x=float(N/2.0)
r_f=False
if x.is_integer():
  halfN=int(x)
else:
  halfN=int((N-1)/2)
for s in S:
  if s == "R":
    r+=1
  if halfN < r:
    r_f = True
    break
if r_f:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

ans = 0 
for i in range(N):
    if s[i] == "R":
        ans += 1

# print(ans)
    
if ans > N/2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())
s = stdin.readline().rstrip()

if s.count('R') > s.count('B'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=input(str())
n=input(str())
A=n.count("R")
B=n.count("B")
if A>B:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
# N = list(map(int, input().split()))
# N = input().split()
# N = input()

S = input()
ans = 'Yes'

cnt = S.count('R')

if N-cnt >= cnt:
    ans = 'No'
print(ans)

Submission status: Accepted

Solution code:
length = int(input())
colors = list(input())
rcount = 0
for i in colors:
    if i == "R":
        rcount += 1
if rcount > length - rcount:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
alist = list(input())
R_num = alist.count("R")
B_num = alist.count("B")
if R_num > B_num:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()
red = 0
for i in s:
    if i == "R":
        red +=1
if red > n / 2:
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())

if list(sorted(s))[(n - 1) // 2] == 'R':
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
S = input()
s = []
for c in S:
    s.append(c)

red = 0
blue = 0
for i in range(len(s)):
    if s[i] == "R":
        red += 1
    if s[i] == "B":
        blue += 1
        
if red > blue:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
num=int(input())
n=input()
Red=n.count("R")
hanbun=num//2
if Red>hanbun :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
a = int(input())
b = input()
if a/2 < b.count("R"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

n = int(input())

s = input()

print( 'Yes' if s.count('R')> n//2 else 'No' )

Submission status: Accepted

Solution code:
N = int(input())
string  = input()
rcnt = 0
bcnt = 0
for char in string:
    if char == "R":
        rcnt +=1 
    else:
        bcnt += 1
if rcnt > bcnt :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

print('Yes' if s.count('R') > len(s)/2 else 'No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
if s.count('R') > s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
st = input()
i = 0
le = len(st)
r = 0
b = 0
while i < le:
  if st[i] == "R":
    r += 1
  else:
    b += 1
  i += 1
if r > b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = list(input())
r = 0
b = 0

for i in range(0,N):
    if s[i] == 'R':
        r += 1
    else:
        b += 1

if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

r = s.count('R')
b = s.count('B')

if r > b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())

counter = 0
for i in range(len(s)):
    if s[i] == "R":
        counter += 1
if counter > n - counter :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = input()

red = 0
blue = 0
for s in S:
  if s == 'R': red += 1
  else: blue += 1
    
if red > blue:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = list(input())
red = s.count("R")
blue = n - red
if red > blue :print("Yes")
else :print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

r = s.count('R')
if r>n/2 :
  print('Yes')
else :
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
str = input()
num_red = str.count('R')
num_blue = str.count('B')

if num_blue < num_red:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
s = input()
if s.count('R') > n//2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
argN = int(input())
argColor = list(input())

cntR = 0
cntB = 0

for i in range(argN):
  if argColor[i] == "R":
    cntR += 1
  else:
    cntB += 1
    
if cntR > cntB:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())

count = s.count('R')
if count > N-count:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
nb_R = len([s for s in input() if s == "R"])
ans = "Yes" if nb_R > int(N/2) else "No"
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
s = input()
counter = 0
for letter in s:
    if letter == 'R':
        counter += 1

if counter > N/2:
   print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
b=input()
a = input()
if a.count('R') > a.count('B') : print('Yes')
else : print('No')

Submission status: Accepted

Solution code:
a = int(input())
s = str(input())
red = 0
blue = 0
for i in range(a):
  if s[i] =='R':
    red += 1
  if s[i] =='B':
    blue += 1
if red>blue:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
cR = 0
cB = 0
for i in range(N):
    if("R" == s[i]):
        cR += 1
    else:
        cB += 1

if(cR > cB):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

count_r = 0
count_b = 0

for i in range(N):
    c = s[i]
    if c == 'R':
        count_r += 1
    elif c == 'B':
        count_b += 1

if count_r > count_b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
num = int(input())
hats = input()

rhat = len([hat for hat in hats if hat == "R"])
bhat = len([hat for hat in hats if hat == "B"])

if rhat > bhat:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
s = input()

r = 0
b = 0
for c in s:
    if c == "R":
        r = r + 1
    else:
        b = b + 1
if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
R = 0
B = 0

for n in range(N):
	if s[0] == "R":
		R += 1
	else:
		B += 1
	s = s[1:]

if R > B:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = list(input())

if S.count("B") < S.count("R"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
s=input()
r=s.count('R')
if 2*r>n:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n= int(input())
s=input()
R =0
B =0

for i in range(n):
    if s[i] == "R":
        R += 1
    else:
        B += 1

if R > B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())

r = 0
b = 0
for i in range(N):
    if s[i] == 'R':
        r += 1
    else:
        b += 1

if r > b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int( input())
color_str = str(input())
color_list = list(color_str)
r_num = color_list.count('R')
if r_num > N - r_num:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:

n=int(input())
s=input()
r=s.count("R")
b=s.count("B")
print("Yes" if r>b else "No")

Submission status: Accepted

Solution code:
import numpy as np
n = int(input())
s = np.array( list( input()))
r = len(s[ s == "R" ])
b = len(s[ s == "B" ])
if( r > b ):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def ex2019b():
    N = int(raw_input())
    S = raw_input()
    s = list(S)

    r = 0
    b = 0

    for i in range(N):
        if s[i] == "R":
            r = r + 1
        elif s[i] == "B":
            b = b + 1
    
    if r > b:
        print "Yes"
    else:
        print "No"

def main():
    ex2019b()
	
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())
s = input()

b_num = s.count("B")
r_num = s.count("R")

if r_num > b_num:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
s = input()

cnt_r = 0

for i in s:
    if i == 'R':
        cnt_r += 1

if cnt_r * 2 > int(N):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import collections

def main():
	N = int(input())
	S = input()
	S = list(S)
	
	R = 0
	B = 0
	for i in S:
		if i == "R":
			R += 1
		else:
			B += 1
	
	if R > B:
		print("Yes")
	else:
		print("No")
			
if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())
answer = [0,0]
for i in range(N):
    if s[i] == 'R':
        answer[0] += 1
    elif s[i] == 'B':
        answer[1] += 1
if answer[0] > answer[1]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from sys import stdin
# import numpy as np
N = int(stdin.readline().rstrip().split()[0])
# A = [int(x) for x in stdin.readline().rstrip().split()]
# N, X = [int(x) for x in stdin.readline().rstrip().split()]
S = stdin.readline().rstrip().split()[0]

s = [1 if s=="R" else -1 for s in S]

if sum(s)>0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = list(input())

l = [1 for s in S if s == 'R']

if int(N/2) < sum(l):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
count = 0
for i in range(N):
    if s[i] == 'R':
        count += 1

if count > len(s) - count:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=input()
s=input()
r=s.count('R')
b=s.count('B')
if r>b: print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
total_count = int(input())
red_count = input().count('R')

if red_count * 2 > total_count:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

def io_generator():
	return input()

#+++++++++++++++++++

def main(io):
	n=int(io())
	s=io()[:n]
	ret='No'
	rr=sum([1 for c in s if c == 'R'])
	if rr > n - rr:
		ret='Yes'
	return ret

#++++++++++++++++++++

if __name__ == "__main__":
	io= lambda : io_generator()
	print (main(io))

Submission status: Accepted

Solution code:
n=input()
s=input()
R=0
B=0
for i in s:
  if i=="R":
    R+=1
  else:
    B+=1
if R>B:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
_ = input()
s = input()
if s.count('R') > s.count('B'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys

input = sys.stdin.readline
N = int(input())
s = input().strip()
r = 0
b = 0

for i in range(0, len(s)):
    if s[i] == 'R':
        r += 1
    else:
        b += 1

if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    s = list(input())

    if(s.count('R') > N / 2):
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())
s = input()
cnt = 0
for a in s:
    if a == 'R':
        cnt += 1
if N - cnt < cnt:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
R_count = s.count('R')
B_count = len(s) - R_count
if R_count > B_count:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
ct_B = 0
ct_R = 0
for c in s:
    if c == "B":
        ct_B += 1
    else:
        ct_R += 1
if ct_R > ct_B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

cnt = 0
for i in range (0,N):
	if (s[i] == "R"):
		cnt += 1
		
if (cnt > N / 2):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = str(input())
count_R = 0
count_B = 0
for i in range(0,N):
    if s[i] == 'R':
        count_R += 1
    else:
        count_B += 1


if count_R > count_B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = input()

r = 0
for i in range(n):
    if s[i] == 'R':
        r += 1
if 2 * r > len(s):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
low = list(input())
R = 0
B = 0
for i in range(N):
    if low[i] == "R":
        R += 1
    else:
        B += 1
if R > B :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()

r = s.count('R')

if 2 * r > N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
n = int(input())
s = input()
if n/2 > s.count("B"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
input()
s=input()
r=s.count("R")
b=s.count("B")
if r>b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(raw_input())
s=raw_input()
a=s.count("R")
print "Yes" if n-a<a else "No"

Submission status: Accepted

Solution code:
N = int(input())
S = input()
if  S.count('R') > len(S)-S.count('R'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
S = input()
s = len(S.replace("B", ""))
if 2*s > N:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
_=input()
s=input()

print("Yes" if s.count("R") >s.count("B") else "No")

Submission status: Accepted

Solution code:
n = int(input())
wlist=list(input())
cnt1=0
cnt2=0
for i in wlist:
    if i == "R":
        cnt1 +=1
    else:
        cnt2 += 1
if cnt1 > cnt2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
num=int(input())
str=input()
redCounter = 0
blueCounter = 0
for i in range(num):
    if str[i] == "R":
        redCounter += 1
    elif str[i] == "B":
        blueCounter += 1

if redCounter > blueCounter:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

input()
s=input()
if s.count('R') > s.count('B'):
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
import sys

red,blue = 0,0
N = int(input())
s = input()
if len(s)!=N or 1 > N or N > 100:
    sys.exit()
for color in s:
    if color == 'R':
        red += 1
    elif color == 'B':
        blue += 1
    else:
        sys.exit()
if red > blue:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import numpy as np
from collections import defaultdict
from collections import Counter
from collections import OrderedDict
#key = {1:2, 2:5, 3:5, 4:4, 5:5, 6:6, 7:3, 8:7, 9:6}
# A = int(input())
N = int(input())
S = input()

R_sum = 0
B_sum = 0
for i in range(N):
    if S[i] == 'R':
        R_sum += 1
    else:
       B_sum += 1
if R_sum > B_sum:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
s = input()
R = 0
B = 0
for i in s:
    if i == 'R':
        R += 1
    if i == 'B':
        B += 1
if R > B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()
Rnum = 0
Bnum = 0

for n in range(N):
    if s[n]=='R':
        Rnum+=1
    elif s[n]=='B':
        Bnum+=1
        
if Rnum> Bnum:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
s = input()
ss = list(s)
r = 0
b = 0
for c in ss:
    if c == 'R':
        r += 1
    else:
        b += 1
if b < r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

R = s.count('R')
B = s.count('B')

if R > B:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = list(str(input()))

r = 0
b = 0
for color in s:
    if color == "R":
        r += 1
    else:
        b += 1
if r > b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# B
n = int(input())
s = str(input())
r = 0
b = 0
l = list(s)
for c in l:
    if c == 'R':
        r += 1
    else:
        b += 1
if r > b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input()) 
Bs=input().replace("R","")
if n-len(Bs) > len(Bs):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
s = str(input())

countr = 0
for i in range(n):
    if s[i] == 'R':
        countr = countr + 1

countb = n - countr

if countr > countb:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
ss = list(input())
b = 0
r = 0
for s in ss:
    if s == 'B':
        b += 1
    else:
        r += 1
if r > b:
    print("Yes")
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = input()

r = 0
b = 0
for str in s:
    if str is 'R':
        r += 1
    else:
        b += 1
if r > b:
    print('Yes')
else:
    print('No')