← All problemsSign in

Bee Rewards

Problem description. Dwij wants 2018 to be a healthy year for him. His friend Busy Bee writes down the health quotient of each and every food item that he eats to check if he follows his vow. Let the number of items he eats be n and h[i] (1 Busy Bee sets a goal 'k' for Dwij. If Dwij can somehow maintain a streak where the total health quotient of food he eats is atleast k, she will get him a gif

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