← All problemsSign in

Sweets Shop

CodeChefRating 262Open on judge ↗

Sushil went to a sweet shop because he always craves to eat sweets. This is not good for his health as he has diabetes, but he doesn't care. A laddu costs Rs. $10$ while a jalebi costs Rs. $20$. Initially, Sushil had Rs. $X$ but then Sushil bought $N$ laddus, how many jalebis can he buy with the remaining money? ### Input - The first line of input contains $X$ and $N$ - the initial amount of mo

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