← All problemsSign in

The secret number

Ryan has a secret number, he has given you an array of numbers and a key, can you find that secret number? ###Input: The first line of input contains a single integer size of the array $N$ The second line contains $n$ integers, the elements of the array The third line contains the key, a positive integer $K$ ###Output: Output the secret number M ###Constraints $ 2<= N<=10^5, 1<=K<

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