SPIDEY
CodeChefOpen on judge ↗
Spiderman was enjoying his pizza and suddenly his spidey senses tickled and he gets to know there are symbiotes rampaging the cities. There are $N$ cities indexed from $0$ to $N-1$ denoted by an Array $Arr$. In each city, there are $Arr[i]$ symbiotes that are creating havoc. Spidey has some problems with his Web shooters and he can't swing into all the cities. He can swing into a city
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