Shweta And Coins
CodeChefOpen on judge ↗
Shweta and Coins Shweta has two coin piles containing gold and silver coins. She can perform a single operation defined as on each operation, she can either select one gold coin and two silver coins or two gold coins and one silver coin and remove them. As she has a lot of coins she asks for your help to find whether she can efficiently find out if she can empty both the piles. Input - The
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