Baba And His Blessings
CodeChefOpen on judge ↗
$\text{"An apple a day keeps the doctor away"}$ is a common English-language proverb of Welsh origin. There is no scientific evidence that eating an apple a day has any significant health effect but our beloved Baba believes it. Few days ago Baba has distributed apples among $N$ children. $i$-th child got $a_i$ apples from Baba. Now Baba is eager to know who will be healthy for the longest dur
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.
Sign in to chat with the tutor and save your progress.
Sign in to start