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 |
Tags
- html tag
- 프로그래머스
- 캡슐화
- DTO
- 파이썬
- 자바
- entity
- 에러
- java
- 코드업
- @builder
- HashSet
- SQL
- github
- 깃허브
- Python
- lv1
- 상속
- HTML
- CRUD
- Codeup
- stringbuffer
- 브랜치
- 기본생성자
- 부스트코스
- @AllArgsConstructor
- 알고리즘
- git
- 부트캠프
- @NoArgsConstructor
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