GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Wednesday, 5 July 2023

[Solution] 2000 CodeChef Problem solution 2023 | RIP2000



Problem
Chef had collected N notes of Rs. 2000 to pay his total college fees. However, the government banned Rs. 
2000 notes.

Chef wants to pay the same amount using Rs. 500 notes only. Find the number of notes Chef needs.

Input Format
Each test case consists of a single integer  N - the number of notes of Rs. 2000 that Chef has collected.

Output Format
Output a single integer - the number of Rs. 500 notes needed.

Constraints
1≤N≤100

Explanation:
4 notes of Rs. 2000 make a total of 4. 2000 = 8000 rupees. This is equivalent to 16 notes of Rs. 500.

No comments:

Post a Comment