본문 바로가기

BOJ/Python

[BOJ/백준] 11121 - Communication Channels (Python)

문제링크

입력과 출력 비트 문자열이 비교해 전송이 정확히 이루어졌는지 확인하는 문제이다.

 

t=int(input())
for _ in range(t):
    input_b, output_b=input().split()
    if input_b==output_b:
        print('OK')
    else:
        print('ERROR')