Even 3 and 5
CodeChefOpen on judge ↗
$James$ asked for candy from his father $Jack$. $Jack$ gave him a task to complete, he gave him an Array of integers and asked him to count the number of elements present in the array at even positions which is divisible by both $3$ and $5$ if $James$ completed the task $Jack$ will buy him candy. ## **Note** Given Array has zero-based indexing. ### Input - First line contains an integer $N$ - S
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