Help Jack
CodeChefOpen on judge ↗
$Jack$ is a math student who is struggling to understand a problem assigned to him by his teacher. The problem is to select $5$ numbers from an array of integers, and check if the sum of these $5$ numbers is $odd$. If the sum is odd, the program should print "YES" and if it's not, the program should print "NO". Jack is confused how to solve this problem. Can you help him to solve this problem?
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