← All problemsSign in

Better Deal

CodeChefRating 584Open on judge ↗

There are $2$ stores in Chefland and both sell the same product. The first store sells the product for $100$ rupees whereas the second store sells it for $200$ rupees. It is the holiday season and both stores have announced a special discount. The first store is providing a discount of $A$ percent on its product and the second store is providing a discount of $B$ percent on its product. Chef is

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