Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 자바
- @AllArgsConstructor
- github
- 기본생성자
- html tag
- CRUD
- @builder
- 브랜치
- 에러
- 부트캠프
- Python
- 깃허브
- 코드업
- DTO
- HashSet
- 부스트코스
- Codeup
- git
- stringbuffer
- 프로그래머스
- 알고리즘
- HTML
- 파이썬
- 상속
- lv1
- @NoArgsConstructor
- 캡슐화
- java
- entity
- SQL
Archives
- Today
- Total
잉?
Codeup 1278 : 자릿수 계산 본문
https://codeup.kr/problem.php?id=1278
1278 : 자릿수 계산
# 1
n = int(input())
result = 1
count = 0
while result < n:
result *= 10
count += 1
print(count)
# 2
n = int(input())
print(len(str(n)))
'알고리즘_Algorism > Codeup' 카테고리의 다른 글
Codeup 1280 : 홀수는 더하고 짝수는 빼고 2 (0) | 2019.07.22 |
---|---|
Codeup 1279 : 홀수는 더하고 짝수는 빼고 1 (0) | 2019.07.22 |
Codeup 1276 : 팩토리얼 계산 (0) | 2019.07.22 |
Codeup 1275 : k 제곱 구하기 (0) | 2019.07.22 |
Codeup 1274 : 소수 판별 (0) | 2019.07.22 |
Comments