Help the chef
CodeChefOpen on judge ↗
Chef is well known programmer in his college programming community. One day while going to college he was thinking of factors which he learned in his middle school. He knew the the factor of a given number is the number which divides it completely. For example ,The factor of $6$ are [$1$,$2$,$3$,$6$] because these number divides the $6$ completely (i.e. reaminder is 0). Chef find it very boring
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