BOJ 2231

녹색자몽·2021년 9월 28일
0

Algorithm

목록 보기
75/80
post-thumbnail

분해합

target = int(input())
 
for i in range(target):
    temp = sum(map(int, str(i)))
    result = i + temp
    if result == target:
        print(i)
        break
else:
    print(0)


profile
볕 좋은 날 시작하는 개발일기

0개의 댓글

관련 채용 정보