← All problemsSign in

International Gym Day

CodeChefRating 1201Open on judge ↗

On the account of International Gym Day, Chefland gym has a special discount offer for a lifetime membership. Chef is taking trial sessions at the gym where he pays $1$ coin per session. For every trial session Chef takes, he is eligible for an **additional** $D$ $\%$ discount while taking the lifetime membership. Given that the membership costs $X$ coins and Chef has a **total budget** of $Y$ c

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