← All problemsSign in

(Interactive) Solve It!

**This problem is interactive. For a guide on interactive problems, please check [this link](https://discuss.codechef.com/t/interactive-problems-and-the-way-to-deal-with-them/21185).** *Deuteragonist: Arnhav Datar. 69 year old forgetful male, sidekick to Raghu. His interests and occupation are of no interest to anyone.* Raghu has an array $(a_1, a_2, … a_N)$ of length $N$ which is hidden.

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