Sum Not Equal
You are given an array $A$ of length $N$. Your task is to find any three indices $i, j, k$ such that: - $1 \le i, j, k \le N$ - $i \ne j, i \ne k, j \ne k$ That is, the indices $\{i, j, k\}$ are pairwise distinct. - $A_i + A_j \ne A_k$ If there are multiple possible solutions, you may find any of them. If no solution exists, print $-1$. ### Input - The first line of input will contain a sing
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