Mina and Her Smart Sister
CodeChefOpen on judge ↗
Minalochani Aragasundaram is teaching her little sister addition and subtraction. But it turns out that her little sister is already very smart and wants to challenge her in a game. She said, the game is simple, I give you 2 numbers, $A$ and $B$ followed by a $‘+’$ or $ ‘- ‘$ sign. You must give me the correct answer according to the sign, $A+B$ or $A-B$. Can you please help Minalo
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