A45 - Card Elimination
提出
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):
score += 0
score += 1
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")