WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Withdrawal from ATM year 2050

Threads:
The user to enter an integer is the amount required to withdraw. Condition, withdraw the required amount must <= 200 million and multiples of VND50,000. In ATMs always ensure enough money for customers to withdraw and not limited to the denomination 500.000, 200.000, 100.000 and 50.000.

Request:

ATM programmed to release the amount of customer needs with the number of banknotes withdrawn is at least. CEO: enter 2.350.000d –> pay out 4 sheet 500K, 1 sheet 200K, 1 100K sheets and 1 50K sheets.

Input:
Enter an integer is the amount required to withdraw

Output:
1. Each line represents a denomination and the number of sheets corresponding to the par value of which.
Just print out the denominations have some sheet > 0.
2. The infringement case input conditions printed “INVALID”

CEO:
Inp:
2350000
Out:
500K 4
200K 1
100K 1
50K 1

You are not logged in? Log in to Submit Now!

32 Comments

Add a Comment