QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 256 MB 총점: 100

#22786. 거스름돈

통계

구매 금액($1 \le P \le 99$)이 센트 단위로 주어집니다. 1달러로 지불했을 때 거스름돈을 주는 방법을 구하세요. 미국의 표준 동전 네 종류인 1, 5, 10, 25센트 동전을 사용하며, 동전 수를 최소로 해야 합니다.

입력

한 줄에 구매 금액을 나타내는 정수 $P$ 하나.

출력

한 줄에 정수 네 개를 출력하여 거스름돈으로 줄 25센트, 10센트, 5센트, 1센트 동전의 개수를 차례대로 나타내세요.

예제

입력 1

43

출력 1

2 0 1 2

문제 출처: 전통 문제

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.