← All problemsSign in

Ki and Ka

Kia and Kabir get bored on a rainy day and decide to create a new game having the following rules: Both of them agree to a number "n". Each of them picks up one large sheet, and writes "n" numbers between 1 and 10^5. The numbers written by Kia are a0,a1,a2,....an-1 on sheet A, and the numbers written by Kabir are b0,b1,b2,...bn-1 on sheet B. After they are done, they keep the sheets on a table,

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