Santa and Gifts
CodeChefOpen on judge ↗
Merry Christmas! in advance. As it is the day before Christmas, the Santa clause has planned to distribute $N$ (numbered $1$ through $N$) gifts and on each gift, an integer $G_{i}$ ($1 \leq i \leq N$) is written. - Santa clause hates prime numbers. If all the values of $G_{i}$ are prime numbers, you have to print "Do not distribute". - Otherwise, initially print "Distribute". Then you have to f
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