일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 김성엽 대표님
- document
- Pwndbg
- 백준 알고리즘
- 메소드
- xss game 풀이
- element 조회
- 배열
- 함수
- python
- 포인터
- github
- sql injection
- window
- htmlspecialchars
- 백준 파이썬
- 파이썬
- burp suite
- suninatas 풀이
- jQuery
- IF문
- 조건문
- object
- xss game
- 사칙연산
- 객체
- property
- lord of sql injection
- 자바스크립트
- blind sql injection
Archives
- Today
- Total
power-girl0-0
[ 1110 ] 더하기 사이클 본문
728x90
n = int(input())
total = n
cnt = 0
while(True):
a= total//10
b= total%10
c=(a+b)%10
total = (b*10)+c
cnt += 1
if(n == total):
print(cnt)
break
728x90
'백준 알고리즘 > python' 카테고리의 다른 글
[ 2562 ] 최댓값 (0) | 2021.03.02 |
---|---|
[ 10818 ] 최소, 최대 (0) | 2021.03.02 |
[ 10951 ] A+B - 4 (0) | 2021.02.28 |
[ 10952 ] A+B - 5 (0) | 2021.02.28 |
[ 10871 ] X보다 작은 수 (0) | 2021.02.28 |
Comments