← All problemsSign in

An Inveractive Problem

CodeChefRating 3074Open on judge ↗

**This is an interactive problem.** Sushi has a sequence of integers $A_1, A_2, \ldots, A_N$; each of them is between $1$ and $10^6$ inclusive. You do not know this sequence, but for a strange reason (maybe because you love her!), you have to find it. You may ask up to $2,222$ queries. In each query: - You should choose two integers $K$ and $X$ ($1 \le K \le N + 1$, $1 \le X \le 10^6$). -

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