← All problemsSign in

Even Pairs

Today is Aryan's Birthday. He wants an array of $N$ integers for his birthday. He had to make the array for himself as none of his friends came on his birthday. To keep himself distracted, he decided to challenge himself by solving a problem. The problem he made for himself is as follows: Aryan has to find the number of unordered pairs of indexes $i, j$ for which sum of $A_i$ and $A_j$ is even. 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start