알고리즘 문제 풀이/1DP_과제(~180615)
180528_2231_분해합
//https://www.acmicpc.net/problem/2231 #include using namespace std; int main(){ int n; cin >> n; int ans=0; for(int i=1; i0){ sum+=tmp%10; tmp/=10; } if(sum==n) { ans=i; break; } } cout