[BOJ][B2]자기복제수 - 2028 https://www.acmicpc.net/problem/2028문제 전문은 링크 참조문제가공숫자 N을 받는다N의 제곱 끝자리가 N과 같으면 YES, 아니면 NO 출력코드작성T = int(input())for _ in range(T): n = int(input()) result = str(n**2) if(str(n) == str(result[-len(str(n)):])): print('YES') else: print('NO') Python/백준 (BOJ) 2025.08.19