BUDTECH - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: pd_codes
Tester: yash_daga
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

You’re given the total budget of Technex — R thousand INR. At least half of this will go to their flagship event.
There are five more events; each of which will receive an equal amount of the remaining budget. What’s the maximum possible budget each one can receive?

EXPLANATION:

The total budget is 1000\times R INR.
Of this, at least half will go to the flagship event.
We want the other events to receive as much as possible, so it’s best for the flagship to receive exactly half.

This makes the remaining budget 500\times R INR.
Now, this amount must be distributed equally to each of 5 events; and so each one will receive 100\times R INR.

So, the final answer is 100\times R.

TIME COMPLEXITY

\mathcal{O}(1) per test case.

CODE:

Editorialist's code (Python)
for _ in range(int(input())):
    r = int(input())
    print(r * 100)