Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 백준
- 자연어처리
- 편스토랑 우승상품
- SW Expert Academy
- PYTHON
- Baekjoon
- gs25
- ChatGPT
- 데이콘
- 프로그래머스 파이썬
- AI 경진대회
- 코로나19
- hackerrank
- 우분투
- dacon
- Real or Not? NLP with Disaster Tweets
- github
- Kaggle
- 파이썬
- 금융문자분석경진대회
- 캐치카페
- 더현대서울 맛집
- leetcode
- 프로그래머스
- 편스토랑
- ubuntu
- 맥북
- Docker
- programmers
- Git
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 21567번 : 숫자의 개수 2 (Python) 본문
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 숫자의 개수 2 입니다.
21567번: 숫자의 개수 2
첫째 줄에 A, 둘째 줄에 B, 셋째 줄에 C가 주어진다. A, B, C는 모두 1,000,000보다 작은 자연수이다.
www.acmicpc.net
🧑🏻💻 코드 ( Solution )
def number_num(A, B, C):
answer = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
ABC = A * B * C
for num in list(str(ABC)):
answer[int(num)] += 1
return "\n".join(list(map(str, answer)))
if __name__ == "__main__":
A = int(input())
B = int(input())
C = int(input())
print(number_num(A=A, B=B, C=C))
GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07
1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.
github.com
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[BaekJoon] 6324번 : URLs (Python) (0) | 2022.11.20 |
---|---|
[BaekJoon] 26040번 : 특정 대문자를 소문자로 바꾸기 (Python) (0) | 2022.11.19 |
[BaekJoon] 9948번 : Have you had your birthday yet? (Python) (0) | 2022.11.17 |
[BaekJoon] 6763번 : Speed fines are not fine! (Python) (0) | 2022.11.16 |
[BaekJoon] 21612번 : Boiling Water (Python) (0) | 2022.11.15 |