← All problemsSign in

Chef and Hims

Chef has given a problem to hims, as he has some work to do.hims has to perform some task on the input array elements ,chef has given us the N elements- A[0],A[1].....A[N-1](as the indexing starts from 0)and chef has also given us the value X which is in float As the input of the data is given by the chef ,hims has to multiplied every element of array A with X and sum of the all elements will be

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