본문 바로가기
python-algorithm

[백준] 13985

by 무적김두칠 2021. 3. 5.

1
2
3
tmp=list(input().split())
if int(tmp[0])+int (tmp[2])==int(tmp[4]): print("YES")
elseprint("NO")
cs

입력중에 다른 사칙 연산이 있다면 eval 연산 쓰시는게 좋아보이네요

반응형

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

[백준] 14264  (0) 2021.03.05
[백준] 14038  (0) 2021.03.05
[백준] 13597  (0) 2021.03.05
[백준] 13311  (0) 2021.03.04
[백준] 13136  (0) 2021.03.04

댓글