number_set = set(range(1, 10001))
generator = set()
for i in range(1, 10001):
for j in str(i):
i += int(j)
generator.add(i)
self_numbers = sorted(number_set - generator)
for i in self_numbers:
print(i)
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
Baekjoon 2448번(python) (2) | 2019.04.28 |
---|---|
Baekjoon 1065번(python) (0) | 2019.04.28 |
Baekjoon 1110번(python) (0) | 2019.04.27 |
Baekjoon 4344번(python) (0) | 2019.04.27 |
Baekjoon 1546번(python) (0) | 2019.04.27 |