Skip to content

Baekjoon 2028

1. Problem

문제 확인하기

2. Solution

1. Python (memory: 31256KB, time: 44ms)

for _ in range(int(input())):
    num = int(input())
    if str(num * num).endswith(str(num)):
        print("YES")
    else:
        print("NO")