Coconut Production
CodeChefOpen on judge ↗
A mall has N coconut production device numbered from 1 to N. Each device has a multiplier number associated with it. Ai is the multiplier for the ith device. If one coconut is put into device i, then it produces Ai coconuts. Ashish has X coconuts but his friend wants exactly Y coconuts on his birthday. Help Ashish to guess if he can obtain exactly Y coconuts from X coconuts using the production de
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