문제 : https://www.acmicpc.net/problem/4673
num = set([i for i in range(1,10001)])
generator = set([])
for i in range(1, 10001): # 150
for j in str(i): # 1, 5, 0
i += int(j) # 150 + 1 + 5 + 0
generator.add(i)
self_num = sorted(num - generator)
for snum in self_num:
print(snum)
self_num = sorted(num - generator)
: 차집합 활용([])
기억하자.