Logo
(追記) (追記ここまで)

27106번 - Making Change 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB43935833183.166%

문제

Given the amount of a purchase (1 ≤ P ≤ 99) in cents, determine the way to make "change for a dollar" for that purchase. Use four standard US coin denominations: 1, 5, 10, and 25. The way to make change uses the least number coins.

입력

A single line with one integer, P, the amount of the purchase.

출력

A single line with four integers telling respectively how many 25 cent, 10 cent, 5 cent, and 1 cent pieces to give as change.

제한

예제 입력 1

43

예제 출력 1

2 0 1 2

힌트

출처

Olympiad > USA Computing Olympiad > 1999-2000 Season > USACO Winter 2000 Contest > Orange 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /