사생활 보호 설정
https://gamjia.tistory.com
Updated News
Mini Rooms
답글수 [0]
What Friends Say
한마디로 표현해봐~
1촌평 관리
2577번 숫자의 개수
GamJia 2023. 3. 24. 09:06
단계별로 풀어보기 - 1차원 배열 - 3단계
https://www.acmicpc.net/problem/2577
#include <iostream> using namespace std; int main() { int A,B,C; int arr[10]={0,}; cin>>A>>B>>C; int result=A*B*C; while(result!=0) { arr[result%10]++; result/=10; } for(int i=0;i<10;i++) { cout<<arr[i]<<endl; } return 0; }