The Big Bang
CodeChefOpen on judge ↗
Sheldon started a new business . Leonard his friend went to visit sheldon and he decided to buy some gift from sheldon’s shop. As sheldon is fond of maths he decided to have some fun with leonard. He said to leonard ,he will only be able to buy gift if he can fulfill his conditions. So sheldon gave a coin of denomination $A[0]$ and said to leonard that he can generate other $N-1$ denomination of
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