반응형
https://www.acmicpc.net/problem/4673
# @Author YoungMinKim
# baekjoon
def self_number():
ls = []
for i in range(1,10001):
ls.append(i + sum([int(j) for j in str(i)]))
return set(range(1,10001)) - set(ls)
result = sorted(self_number())
for i in result:
print(i)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 1929 (0) | 2020.08.28 |
---|---|
baekjoon - python - 1065 (0) | 2020.08.28 |
baekjoon - python -2839 (0) | 2020.08.28 |
baekjoon - python - 2108 (0) | 2020.08.27 |
baekjoon - python - 9653 (0) | 2020.08.27 |
댓글