백준 2577- 숫자의 개수 python
·
Algorithm/백준
python count내장함수를 이용하면 해당 문자의 개수를 구할 수 있다. import sys input = sys.stdin.readline A = int(input()) B = int(input()) C = int(input()) result = A * B * C result = list(str(result)) for i in range(10): print(result.count(str(i))) www.acmicpc.net/problem/2577 2577번: 숫자의 개수 첫째 줄에 A, 둘째 줄에 B, 셋째 줄에 C가 주어진다. A, B, C는 모두 100보다 같거나 크고, 1,000보다 작은 자연수이다. www.acmicpc.net
takoyummy
'2577 python' 태그의 글 목록