일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- data_structure
- 백준
- Sequential Search
- C++
- centuryFromYear
- 파이썬 포렌식
- flask
- adjacentElementsProduct
- Counting cells in a blob
- til
- 10953
- 피보나치 수
- codesingal
- 수 정렬하기
- 파이썬머신러닝완벽가이드
- Daily Commit
- baekjun
- 2750
- All Longest Strings
- codesignal
- 2015 봄학기 알고리즘
- collections.deque
- Python
- Numpy
- matrixElementsSum
- cpp
- recursion
- shapeArea
- markdown
- almostIncreasingSequence
Archives
- Today
- Total
Introfor
Persistent Bugger
from functools import reduce 이 모듈은 처음 써보는데 편리하게 사용할 수 있을 것 같다. 1 2 3 4 5 6 7 8 9 10 from sys import stdin from functools import reduce n = int(stdin.readline()) cnt = 0 while n >= 10: n_list = list(str(n)) n = reduce(lambda x, y: int(x)*int(y), n_list) cnt += 1 print(cnt) Colored by Color Scripter cs 다른 소스코드 1 2 3 4 5 6 7 8 9 10 def persistence(n): n = str(n) count = 0 while len(n) > 1: p = 1 fo..
Programming_prob/Codewares
2020. 9. 21. 20:52