We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
소스 코드
동전 개수는 높은 액수의 동전을 가능한 많이 가져올 때 최소가 된다. -> 그리디
for(int i = N-1; i>=0; --i) { if(K < coin[i]) continue; if(K == 0) break; cnt += K / coin[i]; K %= coin[i]; } cout << cnt;
The text was updated successfully, but these errors were encountered:
minsoo0715
No branches or pull requests
11047: 동전 0
소스 코드
아이디어
동전 개수는 높은 액수의 동전을 가능한 많이 가져올 때 최소가 된다.
-> 그리디
구현
The text was updated successfully, but these errors were encountered: