728x90
반응형
단순 구현 문제이다.
for i in range(int(input())):
li = input().split()
res = "NO"
if li[1] == '+' and int(li[0])+int(li[2]) == int(li[4]):
res = "YES"
if li[1] == '-' and int(li[0])-int(li[2]) == int(li[4]):
res = "YES"
print(f"Case {i+1}: {res}")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 1251번 단어 나누기(python) (0) | 2021.02.24 |
---|---|
백준 알고리즘 1246번 온라인 판매(python) (0) | 2021.02.24 |
백준 알고리즘 10599번 페르시아의 왕들(python) (0) | 2021.02.23 |
백준 알고리즘 9950번 Rectangles(python) (0) | 2021.02.23 |
백준 알고리즘 9945번 Centroid of Point Masses(python) (0) | 2021.02.23 |