← All problemsSign in

Approval Ratings

CodeChefRating 915Open on judge ↗

You are a singer. There are $5$ judges in a reality show judging your performance. You know beforehand, from your insider sources, that the $i$-th judge will give you a rating of $A_i$ out of $10$. To be selected, you need an average rating of at least $7$. You can bribe a judge by paying them $100$ gold coins. The judge will then change his rating of your performance to $10$. What is the minim

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start