본문 바로가기
python-algorithm

codeforces 1722B - Colourblindness

by 무적김두칠 2022. 9. 6.

1
2
3
4
5
6
7
8
9
10
11
def sol(str1, str2):
    str1=str1.replace('G','B')
    str2=str2.replace('G''B')
    if str1 == str2 :
        print("YES")
    else :
        print("NO")
n=int(input())
for i in range(n):
    str_len=int(input())
    sol(input(),input())
cs

 

반응형

'python-algorithm' 카테고리의 다른 글

백준 8545 Zadanie próbne  (0) 2022.09.13
codeforces 1722A - Spell Check  (0) 2022.09.06
백준 25494 단순한 문제 (Small)  (0) 2022.08.30
codeforces 1714C - Minimum Varied Number  (0) 2022.08.18
백준 4589 Gnome Sequencing  (0) 2022.08.02

댓글