Gambler Frank
CodeChefOpen on judge ↗
Problem description Frank really likes to gamble and he goes to the casino very often. When he exchanges his money for chips, he can pick chips from 3 different boxes. He grabbed A chips from the first box, B chips from the second box and still has to grab chips from the third box. Frank belives that prime numbers are his lucky numbers, and if the sum of the chips he gets from the third box is a
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