Help John!
CodeChefOpen on judge ↗
John is applying for an internship at a startup, for being admitted he has to clear a coding round, he is stuck on one question which requires him to find the number of perfect numbers present in an array of natural numbers. Help John by writing the program so that he can get the internship. ### Input - First line will contain number of elements in the array. - Next line contains the elements in
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