Source
How to solve?
1. A, B, C의 input 받기.
2. 곱하기.
3. .count 함수를 사용 해서 문자열로 표현된 각 숫자의 갯수 출력.
Logic
Flowchart powered by : diagram.net
Wrong answer
A = int(input())
B = int(input())
C = int(input())
Mul = list(str(A*B*C))
for i in range(len(Mul)+1):
print(Mul.count(str(i)))
위와 같이 하면 len(Mul)까지의 리스트가 출력된다.
()연산자보다 +연산자가 후순위여서 생기는 문제인 것 같다.
One step more
...
'Problem solve' 카테고리의 다른 글
[백준] 1546번 평균 (Python) (0) | 2022.04.12 |
---|---|
[백준] 3052번 나머지 (Python) (0) | 2022.04.08 |
[백준] 2562번 최댓값 (Python) (0) | 2022.04.08 |
[백준] 10818번 최소, 최대 (Python) (0) | 2022.04.08 |
[백준] 1110번 A + B - 4 (Python) (0) | 2022.04.08 |