Skip to content

Baekjoon 3062

1. Problem

문제 확인하기

2. Solution

for _ in range(int(input())):
    s = input()
    n = str(int(s) + int(s[::-1]))
    print("YES" if n == n[::-1] else "NO")