A45 - Card Elimination
https://atcoder.jp/contests/tessoku-book/tasks/tessoku_book_as
提出
code: python
n, c = input().split()
a = input()
# c から a にできるか
# B -> WB -> BBR -> BBRW
# どういう手順でこれを行えばいい?
解答
code: python
N, C = input().split()
A = input()
N = int(N)
score = 0
for i in range(N):
if Ai == 'W':
score += 0
if Ai == 'B':
score += 1
if Ai == 'R':
score += 2
if score%3 == 0 and C == 'W':
print("Yes")
elif score%3 == 1 and C == 'B':
print("Yes")
elif score%3 == 2 and C == 'R':
print("Yes")
else:
print("No")