Tanmay food love
CodeChefOpen on judge ↗
Tanmya is very fond of food. He loves to go out for dinner and he always tips the waiter a total of $20$% of the cost of food. Since the new iPhone is coming up, he wants to save money and he sets a budget of $N$ for every meal. He also wants to always follow his rule of tipping the waiter appropriately. Can you help him choose a dish within his budget? Formally, for every budget $N$ and dis
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.
Sign in to chat with the tutor and save your progress.
Sign in to start