일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- markdown
- Numpy
- 피보나치 수
- cpp
- recursion
- 2750
- shapeArea
- flask
- almostIncreasingSequence
- adjacentElementsProduct
- C++
- Daily Commit
- Sequential Search
- centuryFromYear
- codesingal
- codesignal
- Python
- Counting cells in a blob
- til
- All Longest Strings
- baekjun
- matrixElementsSum
- 파이썬머신러닝완벽가이드
- data_structure
- 수 정렬하기
- collections.deque
- 파이썬 포렌식
- 2015 봄학기 알고리즘
- 백준
- 10953
Archives
- Today
- Total
Introfor
[백준] 4673번 셀프 넘버 본문
문제에서 설명한 방식을 그대로 적용해서 풀었다. 흠.. 뭔가 얻어간게 없는 듯한 기분 하나 더 풀기에는 늦었네.. 내일 좀 더 많이 풀어야겠네
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
def solve():
n_set = set(range(1, 10001))
comparison = set()
for i in n_set:
for j in str(i):
i += int(j)
comparison.add(i)
answer = n_set - comparison
for i in sorted(answer):
print(i)
solve()
|
cs |
'Programming_prob > BaekJoon' 카테고리의 다른 글
[백준] 10809번 알파벳 찾기 (0) | 2020.10.05 |
---|---|
[백준] 1065번 한수 (0) | 2020.10.05 |
[백준] 2484번 주사위 네개 (0) | 2020.09.28 |
[백준] 1748번 수 이어 쓰기 1 (0) | 2020.09.28 |
[백준] 10799번 쇠막대기 (0) | 2020.09.16 |
Comments