보안을 그리다, 훈이

[Baekjoon/Python3] 13985번 Equality 본문

Programming/Python & Data Structures

[Baekjoon/Python3] 13985번 Equality

HooNeee 2020. 12. 7. 01:14

[Baekjoon/Python3] 13985번 Equality

 

www.acmicpc.net/problem/13985

 

13985번: Equality

Print, on a single line, YES if the sum is correct; otherwise, print NO.

www.acmicpc.net

 

a, b = input().split('=')
if eval(a) == int(b):
    print('YES')
else:
    print('NO')
Comments