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
- leetcode
- datascience
- 네이버AItech
- Kubernetes
- 완전탐색
- python
- 프로그래머스
- Matplotlib
- 코딩테스트
- 백준
- torchserve
- FastAPI
- docker
- rnn
- Kaggle
- github
- DeepLearning
- wandb
- NaverAItech
- GIT
- vscode
- autoencoder
- pep8
- pytorch
- FDS
- NLP
- GitHub Action
- PytorchLightning
- 알고리즘
- GCP
Archives
- Today
- Total
Sangmun
백준 11057 오르막 수 본문
[백준] 11057 오르막 수 (파이썬 Python)
https://www.acmicpc.net/problem/11057 11057번: 오르막 수 오르막 수는 수의 자리가 오름차순을 이루는 수를 말한다. 이때, 인접한 수가 같아도 오름차순으로 친다. 예를 들어, 2234와 3678, 11119는 오르막 수이
animoto1.tistory.com
# 11057
n = int(input())
dp = [1]*10
for i in range(1,n) :
for j in range(1,10) :
dp[j] += dp[j-1]
print(sum(dp)%10007)
'알고리즘 > 백준' 카테고리의 다른 글
백준 1449번 수리공 (0) | 2023.02.03 |
---|---|
백준 1049번 기타줄 (0) | 2023.02.03 |
백준 11052번 카드 구매하기 파이썬 (0) | 2022.12.21 |
백준 9935번 문자열 폭발 (0) | 2022.12.14 |
백준 17144번 미세먼지 안녕! (0) | 2022.12.14 |
Comments