Convex Polygon
CodeChefOpen on judge ↗
Let's define a function on a set $A$= $(a_1, a_2, ... , a_k)$ with size k: **F($a_1, a_2, ... , a_k$)**. Imagine that we have sticks of lengths $a_1, a_2, ... , a_k$. $F(a_1,a_2,.....a_k) = 1$, if and only if a convex polygon can be created from these sticks, and 0 otherwise. We also define identity permutation over n elements as follows. $I_n$ = {1, 2, 3, .. n}. We want to know 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