← All problemsSign in

Operation on Numbers

Description Suji was interested in playing with numbers. She has n numbers. She wants to perform certain operation on those n numbers.In one operation, suji chooses some segment of numbers from n and increases the values of those numbers in that segment by some number of her choice. Out of n she has k favourite numbers where k . She don't wants to perform addition on those k numbers, even if they

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