Scoring
Alice and Bob were playing a game with points to score. Each player's score is some non-negative integer number of points. In the end, Alice won the game by scoring $X$ more points than Bob. Further, it is known that the total number of points scored by both of them was $Y$. With this information, your task is to find how many points Alice scored, and how many points Bob scored. It is guarantee
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