Game between friends
Nitin and Sobhagya were playing a game with coins. If Sobhagya has **more** coins then he is *winning*, otherwise Nitin is winning. **Note** that this means if both Nitin and Sobhagya have the same number of coins, then Nitin is winning. Initially Nitin has $A$ coins while Sobhagya has $B$ coins. Then Ritik came and gave his $C$ coins to the player who is **not winning** currently, after which Sa
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