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 | 31 |
Tags
- 캐치카페
- 프로그래머스
- 편스토랑 우승상품
- Kaggle
- 금융문자분석경진대회
- SW Expert Academy
- gs25
- Docker
- github
- 코로나19
- leetcode
- programmers
- hackerrank
- 파이썬
- 편스토랑
- AI 경진대회
- 우분투
- 데이콘
- 프로그래머스 파이썬
- dacon
- PYTHON
- Real or Not? NLP with Disaster Tweets
- 백준
- ubuntu
- 더현대서울 맛집
- Baekjoon
- 맥북
- 자연어처리
- ChatGPT
- 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 |
Comments