Array Sum
CodeChefOpen on judge ↗
The chef started playing a famous game called BGMI and in that game chef's damage is given by array where $a_i$ represents damage given by the chef at that instant. chef can defeat enemy only if damage given by chef, on the whole, is $greater$ $than$ $enemy's$ $health$ NOTE: there is only one enemy ### Input - The first line contains a single integer t (1≤T≤100) — the number of test cases. - T
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