Poly Gone
CodeChefOpen on judge ↗
Poly must go to the airport to catch her flight to Goa so that she can attend Quark'23 and have some fun. But before she leaves, she needs your help. The organizers of Quark'23 have defined a sequence of **n** numbers as **Quarky** if it possible to make an **n-sided polygon** using the numbers of the sequence as the sides of the polygon. Given an integer array $A$ of size $N$, Poly needs you to
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