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: Wrong Answer

Solution code:
a=int(input())
n=input()
print("Yes" if n.count("R")>n.count("L") else "No")

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
N,S=open(0)
print('YNeos'[S.count('B')>=-int(N)//-2::2])

Submission status: Wrong Answer

Solution code:
N,S=open(0)
print('YNeos'[S.count('B')>=int(N)//2::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

cnt = 0
for s in S:
  if "B" == cnt:
    cnt += 1

if cnt > N - cnt:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

cnt = 0
for s in S:
  if "R" == cnt:
    cnt += 1

if cnt < N - cnt:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

cnt = 0
for s in S:
  if "R" == cnt:
    cnt += 1

if cnt > N - cnt:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

s = list(input())

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

if r > b:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a = input()
cnt = 0
for i in a:
  cnt += (i == "R")
print("YNeos"[(cnt <= 2)::2])

Submission status: Wrong Answer

Solution code:
N = int(input())
s = input()
if s.count('R')>N/2:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input()) #総数
s = input()      #文字列
count = 0
for i in s:
  if i == "R":
    count = count + 1
if count > N//2:
  print("yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import math
N = int(input()) #総数
s = input()      #文字列
count = 0
for i in s:
  if i == "R":
    count = count + 1
if count > math.floor(N//2):
  print("yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
 
input = sys.stdin.readlines()
 
n = int(input[0])
hatList = list(input[1])
counter = 0

for i in range (n):
  if(hatList[i] == "R"):
    counter += 1
  if counter >= (n/2 + 1):
    print("Yes")
    exit()
    
print("No")

Submission status: Wrong Answer

Solution code:
import sys
 
input = sys.stdin.readlines()
 
n = int(input[0])
print(input[1])
hatList = list(input[1])
counter = 0

for i in range (n):
  if(hatList[i] == "R"):
    counter += 1
  if counter >= (n/2 + 1):
    print("Yes")
    exit()
    
print("No")

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import Counter
N = int(input())
s = input()
cnt = Counter(s)
#print(cnt)
if N % 2 == 0:
  print("Yes" if cnt["R"] > N // 2 else "No")
else:
  print("Yes" if cnt["R"] > N // 2 + 1 else "No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n=int(input())
s=input()
S=list(s)
S.sort()
count=0
if n==1:
    if S[0]=='B':
        print('No')
    else:
        print('Yes')
else:
    for i in range(n-1):
        if S[i]!=S[i+1]:
            count=i+1
            break
        if i==n-2:
            count=n-1
    if count>=n//2:
        print('No')
    else:
        print('Yes')

Submission status: Wrong Answer

Solution code:
n=int(input())
s=input()
S=list(s)
S.sort()
count=0
for i in range(n-1):
    if S[i]!=S[i+1]:
        count=i+1
        break
    if i==n-2:
        count=n-1
if count>=n//2:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
n=int(input())
s=input()
S=list(s)
S.sort()
count=0
for i in range(n-1):
    if S[i]!=S[i+1]:
        count=i+1
if count>=n//2:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

if S.count("r")-S.count("b")>0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
input_list = sys.stdin.readlines() 
N, s = map(str.strip, input_list)
red_hat_counter = 0
for s_str in s:
  if s_str == "R":
    red_hat_counter += 1
if red_hat_counter > (int(N)/2):
  print red_hat_counter
else:
  print "No"

Submission status: Wrong Answer

Solution code:
import sys
input_list = sys.stdin.readlines() 
N, s = map(str.strip, input_list)
red_hat_counter = 0
for s_str in s:
  if s_str == "R":
    red_hat_counter += 1

if red_hat_counter > (int(N)%2):
  print "Yes"
else:
  print "No"

Submission status: Wrong Answer

Solution code:
red = int(input())
cap = list(input())
for c in cap:
  if c == 'B':
    red -= 1
if red > 2:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
red = int(input())
cap = input()
for c in cap:
  if c == 'B':
    red -= 1
if red > 2:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

a = 0
for s in S:
  if s=="B":
  	  a += 1
if a > N-a:
	print("Yes")
else:
  	print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def red_or_blue(N: int, s: str)->bool:
    r = sum(c == 'R' for c in s)
    return r > N-r


if __name__ == "__main__":
    N = int(input())
    s = input()

    ans = red_or_blue(N, s)
    print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = int(input())
hat = list(input())

B_count = hat.count('B')
R_count = hat.count('R')

if B_count < R_count:
  print("YES")
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
i = int(input())
hat = list(input())

B_count = hat.count('B')
R_count = hat.count('R')

if B_count < R_count:
  print("YES")
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
from sys import stdin, stdout
# from math import sqrt, pi, acos, gcd, atan2, cos, sin, factorial, log10
# # from matplotlib import mlab
# # from matplotlib import pylab
# # from decimal import Decimal
# # from random import randint
# # import re
# PEPS = 1e-10
# INF = float('inf')
#
#
# def sqr(a):
#     return a * a
#
#
# def dist(a, b = (0, 0)):
#     return sqrt(sqr(a[0] - b[0]) + sqr(a[1] - b[1]))
#
#
# def s_dist(a, b = (0, 0)):
#     return (sqr(a[0] - b[0]) + sqr(a[1] - b[1]))
#
#
# def dist3(a, b = (0, 0, 0)):
#     return sqrt(sqr(a[0] - b[0]) + sqr(a[1] - b[1]) + sqr(a[2] - b[2]))
#
#
# def s_dist3(a, b = (0, 0, 0)):
#     return (sqr(a[0] - b[0]) + sqr(a[1] - b[1]) + sqr(a[2] - b[2]))
#
#
# def trans(p, al):
#     return (p[0] * cos(al) + p[1] * sin(al), - p[0] * sin(al) + p[1] * cos(al))
#
#
# def get_angle(a, b, c):
#     cos_al = (sqr(a) + sqr(b) - sqr(c)) / (2 * a * b)
#     return acos(cos_al)
#
#
# def write_float(ans):
#     stdout.write(str('%.13f' % ans) + '\n')
#
#
# def get_hight(pt1, pt2, pt3):
#     a = (pt2[0] - pt1[0], pt2[1] - pt1[1])
#     b = (pt3[0] - pt1[0], pt3[1] - pt1[1])
#     return abs(a[0] * b[1] - a[1] * b[0]) / dist(pt1, pt2)
#
#
# def get_square(pt1, pt2, pt3):
#     a = (pt2[0] - pt1[0], pt2[1] - pt1[1])
#     b = (pt3[0] - pt2[0], pt3[1] - pt2[1])
#     return (a[0] * b[-1] - a[1] * b[0]) / 2
#
#
# def sign(v):
#     if v > 0:
#         return 1
#     elif v < 0:
#         return -1
#     else:
#         return 0
#
#
# def inn(pt, triangle):
#     signs = set()
#     signs.add(sign(get_square(triangle[0], triangle[1], pt)))
#     signs.add(sign(get_square(triangle[1], triangle[2], pt)))
#     signs.add(sign(get_square(triangle[2], triangle[0], pt)))
#     return len(signs) == 1
#
#
# def inter_in(a, b):
#     return dist((a[0], a[1]), (b[0], b[1])) < a[-1] + b[-1]
#
#
# def inter_in3(a, b):
#     return dist3(a[:-1], b[:-1]) < a[-1] + b[-1]
#
#
# def shift(what, wth):
#     return (what[0] - wth[0], what[1] - wth[1])
#

s = stdin.readline().strip()
stdout.write(['No', 'Yes'][s.count('R') > s.count('B')])

Submission status: Wrong Answer

Solution code:
s = list(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
S = np.sum(np.array([i for i in input()],dtype = 'str') == "R")
print("Yes") if 2 * N > S else print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
a = str(input())
if a.count("r") > n /2:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

RBlist = list(s)

print(type(N))

r=RBlist.count('R')

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
r = s.count('R')
b = s.count('B')
print('YNeos'[r < b::2])

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input()
r = s.count('R')
b = s.count('B')
print('YNeos'[r > b::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
counterR = 0
counterB = 0
for i in range(len(s)):
  if(s[i]=="R"):
    counterR += 1
  else:
    counterB += 1
if (counterR > counterB):
  print("Yes")
elif(counterB >= counterR):
  print("No")
else:
  None

Submission status: Wrong Answer

Solution code:
s = str(input())
counterR = 0
counterB = 0
for i in range(len(s)):
  if(s[i]=="R"):
    counterR += 1
  else:
    counterB += 1
if (counterR > counterB):
  print("Yes")
elif(counterB >= counterR):
  print("NO")
else:
  None

Submission status: Wrong Answer

Solution code:
s = str(input())
counterR = 0
counterB = 0
for i in range(len(s)):
  if(s[i]=="R"):
    counterR += 1
  else:
    counterB += 1
if (counterR > counterB):
  print("Yes")
elif(counterR <= counterB):
  print("NO")
else:
  None

Submission status: Wrong Answer

Solution code:
s = str(input())
counterR = 0
counterB = 0
for i in range(len(s)):
  if(s[i]=="R"):
    counterR += 1
  else:
    counterB += 1
if (counterR > counterB):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = str(input())
counter = 0
for i in range(len(s)):
  if(s[i]=="R"):
    counter += 1
k = len(s)/2
if (counter > k):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = str(input())
counter = 0
for i in range(len(s)):
  if(s[i]=="R"):
    counter += 1
if (counter > (len(s)/2)):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
hat = input()
num = 0
for i in hat:
  if i == "R":
    num += 1
if num > (len(hat)/2):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
name = input()
count = 0
for i in name:
    if i == "R":
        count += 1

if count * 2 > len(name):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/bin/usr/env python3

N = int(input())
s = input()

red = 0
blue = 0

for i in s:
    if i == "R":
        red += 1
    else:
        blue += 1

if red >= blue:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
s=str(input())
s1=s.count('R')
s2=s.count('B')
if(s1>s2):
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
print('YNeos'[int(input())/2<input().count('R')::2])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = [i for i in input()]
if N.count("R")>N.count("B"):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
print('YNeos'[int(input())<=input().count('R')*2::2])

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = []
d = []
for i in b:
        if i == "R":
                c.append(i)
        if i == "B":
                d.append(i)
if c > d or c == d:
        print("Yes")
else:
        print("No")

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = []
d = []
for i in b:
        if i == "R":
                c.append(i)
        if i == "B":
                d.append(i)
if c > d and c == d:
        print("Yes")
else:
        print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
s = str(input())
red = 0
blue = 0
if "R" in s:
    red += 1
elif "B" in s:
    blue += 1

if red > blue:
    print("Yes")
elif red == blue or red < blue:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
s=list(input().split())
n=0
for i in range(N):
     if i=='R':
         n+=1
     else:
         n+=0
if N/2<n:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
s=list(input().split())
for i in s:
     a=0
     if i=='R':
         a+=1
if N/2<a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

N1 = int(N)/2

import math
N1= math.floor(N1)
N1= int(N1)-1

list_s = list(s)
list_s.sort()
X = list_s[N1]

if X=='R':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
s=list(input().split())
for i in range(N):
     n=0
     if i=='R':
         n+=1
if N/2<n:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

N1 = int(N)/2

import math
N1= math.floor(N1)
N1= int(N1)

list_s = list(s)
list_s.sort()
X = list_s[N1]

if X=='R':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
s=list(input().split())
for i in s:
     n=0
     if i=='R':
         n+=1
if N/2<n:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

N1 = int(N)/2

import math
math.floor(N1)
N1= int(N1)

list_s = list(s)
list_s.sort()
X = list_s[N1]

if X=='R':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

N1 = int(N)/2

import math
math.ceil(N1)
N1= int(N1)

list_s = list(s)
list_s.sort()
X = list_s[N1]

if X=='R':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

N = int(N)/2

import math
math.ceil(N)
N= int(N)

list_s = list(s)
list_s.sort()
X = list_s[N]

if X=='R':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
s=list(input())
Rcnt,Bcnt=0,0;
for i in range(N):
  if s[i]=='R':
  	++Rcnt
  else:
  	++Bcnt
if Bcnt<Rcnt:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
a = int(input())-1
b = str(input())
c = b[a]
print(c)

Submission status: Wrong Answer

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

N = int(int(N)/2)
list_s = list(s)
list_s.sort()
X = list_s[N]

if X=='R':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
s = str(input())
red = 0
blue = 0
if "R" in s:
    red += 1
elif "B" in s:
    blue += 1

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

Submission status: Wrong Answer

Solution code:
n = int(input())

k = input()
p = 0
r_count = 0
b_count = 0
for l in range(n):
    if str(k[p]) == "R":
        r_count += 1
        p += 1
    elif str(k[p]) == "B":
        b_count += 1
        p += 1
    else:
        pass
print(r_count,b_count)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
N = int(input())

s = input()
rcount = 0
for c in s:
    if c == 'Red':
        rcount += 1
bcount = N - rcount
if rcount > bcount:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    S = input()
    R = 0
    B = 0
    for i in range(0,N):
        if S[i] == "R":
            R = R + 1
        else:
            B = B + 1
        if R > N/2:
            print("Yes")
            return
        elif B > N/2:
            print("No")
            return
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = input(int)
L = input()
R_list = [s for s in L if 'R' in s]
B_list = [s for s in L if 'B' in s]

if len(R_list) >len(B_list):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

from sys import stdin

def load():
    n = stdin.readline()
    return n

n = load()
s = load()

red = 0
blue = 0 
for i in s:
    if i == 'R':
        red += 1
    else:
        blue += 1

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

Submission status: Wrong Answer

Solution code:
s = raw_input()
l = raw_input()

b=0
r=0

for idx in range (0, (int)(s)-1):
	if (l[idx] == 'R'):
		r = r+1
	else: 
		b = b+1

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

Submission status: Wrong Answer

Solution code:
n = int(input())
array = list(input())
array.sort()
length = len(array)
if(length%2==0):
    if(array[int(length/2)-1]=='b'):
        print("No")
    else:
        print("Yes")
else:
    if(array[int(length/2)]=='b'):
        print("No")
    else:
        print("Yes")

Submission status: Wrong Answer

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

h = N//2
r = 0
b = 0
for c in s:
	if c == "R":
		r += 1
		if r > h:
			print("Yes")
			break
	elif c == "B":
		b += 1
		if b >= h:
			print("No")
			break

Submission status: Wrong Answer

Solution code:
A = int(input())
B = list(input())

count_RED = 0
for i in range (0, A):
    if B[i] == "R":
        count_RED += 1
count_BLUE = A - count_RED
if (count_RED > count_BLUE):
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

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: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())
s = str(input())
print(s)
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: Wrong Answer

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())
data = stdin.readline().rstrip().split()
print(type(data))
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: Wrong Answer

Solution code:
cnt = int(input())

color = input()

r_c = 0
b_c = 0

for i in range(cnt):
    if color[i] == 'R':
        r_c += 1
    elif color[i] == 'B':
        b_c += 1

if r_c > b_c:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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 'N0'

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
n=int(input())
s = input().split()
#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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

input = sys.stdin.readline
N = int(input())
s = input().split()
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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

N= int(input())
l = input()
print(l.count("R"))

if N - l.count("R") < l.count("R"):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()
cnt = 0
for color in s:
  if color == 'R':
    cnt += 1
    if cnt > (s.length/2):
      print('Yes')
      break

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
r,b=0,0
X=[x for x in input()]
for x in X:
    if x=='R':
        r+=1
    else:
        b+=1
print(r,b)
if r>b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
g = input()
inp = list(input())
if inp.count('R') > inp.count('G'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
s=list(input())
cnt=0
for i in s:
  if 'R'==i:
    cnt+=1
if cnt<=n-cnt:
  print('B')
else:
  print('R')

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

dic = {'R':0, 'B':0}
for ss in s:
    dic[ss] += 1

print(dic)
if dic['R'] > dic['B']:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
r,b=0,0
X=[x for x in input()]
for x in X:
    if x=='R':
        r+=1
    else:
        b+=1
if b>r:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
wlist=list(input())
cnt=0
for i in wlist:
    if i == "R":
        cnt +=1
if cnt > round(len(wlist)/2):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if R_num*2 > N:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input()
DATA=input()
R=DATA.count("R")
B=DATA.count("B")
if R< B:
    print("R")
elif B>R:
    print("B")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
s = list(input())
judge = max(s,key=s.count)
print('Yes' if judge == 'R' else 'No')

Submission status: Wrong Answer

Solution code:
input()
a=input()
print(a.count("R") > a.count("B"))

Submission status: Wrong Answer

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

if n - len([i for i in s if i == 'R']) * 2 > 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# encoding: utf-8
import sys
input = sys.stdin.readline

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

cnt = 0
for Si in S:
    if Si == 'R': cnt += 1
    else: cnt -= 1

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

Submission status: Wrong Answer

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

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