← All problemsSign in

Joey and food

Problem description. Joey loves food. One day his fridge broke and now he has to eat all the food in the fridge. The fridge has many racks and each rack contains some amount of food. Find the total amount of food that Joey has to eat. Input - First line has N, the number of racks in the fridge. - Second lines has N integers, each represents the food in each rack, denoted as foodi Output Prin

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