Eyepatch and Lost Powers
CodeChefOpen on judge ↗
The Eyepatch has lost his power given by Rize! After a lot of research Eyepatch has came up with a solution which can restore his power back. He discovered $N$ ingredients numbered from $1$ to $N$, each of this ingredients has a characteristic of $A[i]$ where $1\leq i \leq N$ . If the sum of all the characteristic of the $N$ ingredients is equal to zero then only Eyepatch can recover his power.
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