HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Epoka Science Olympiad 2013-2015 > problem:


50958 - ATM

Epoka Science Olympiad 2013-2015

Start: May.18.2013 at 10:00:00 AM
Finish: May.18.2013 at 03:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 503013 - DNA
• 50958 - ATM
• 2013-10Gr-10. 50310 - Kinetic Energy
• 2013-10Gr-20. 50311 - Student Line Up
• 2013-10Gr-40. 50313 - Pattern Disp...
• 2013-11Gr-10. 50314 - Falling Distance
• 2013-11Gr-20. 50315 - Pig Latin
• 2013-11Gr-30. 50316 - Population B...
• 2013-11Gr-40. 50317 - Student Line Up
• 2014-10Gr-10. 50424 - Area

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 4000/7000/7000/7000 ms. Memory limit 65000/65000/65000/65000 Kb.
Olympiad 2013. Prepared by: Evis Hoxha.

Question 4- ATM

Shqip

Write a program ATM that returns the money requested by the user. The ATM has notes of three kinds: 1000, 500 dhe 100.

Input
There will be given two numbers a n and m, where n is the value that the user has in its account and m is the value that wants to take.

Output
If the sum that the user wants to take is less than the value of money in its accoun, show Not enough money. If the required value can not be converted in the notes of the ATM, show Not possible.

If the required value can be converted in the notes of the ATM, show three numbers: a, b, c, which are the number of notes with value 1000, notes with value 500, notes with values 100 respectively.

Input I

7000 5400

Output I

5 0 4


Input II
7000 8100
Output II
Not enough money

Input III
7000 541
Output III
Not possible

Для отправки решений необходимо выполнить вход.

www.contester.ru