Gold Heist!
CodeChefOpen on judge ↗
Professor and team carried out a successful bank robbery in which they robbed $N$ gold coins. Now Professor wants to distribute them among the team. As all the girls played a major role in the robbery, Professor will give two coins to each girl and one coin to each boy. Now, suppose there are $x$ girls and $y$ boys, Professor wants you to calculate if there will be any coins left for him or not,
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