You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
https://www.acmicpc.net/problem/5585
[문제설명]
1 <= n < 1000 의 정수(물건 가격)가 랜덤으로 주어지고 거스름돈 개수가 가장 적게 잔돈을 주는 문제다.
1000엔 지폐를 냈을 때, 가장 적게 받는 잔돈의 개수를 구하는 문제
잔돈으로는 500엔,100,엔,50엔, 10엔, 5엔, 1엔이 있다.
[풀이]
All reactions