A simple polygon is a polygon that does not intersect itself and has no holes. Note that a simple polygon has at least. n edges. Note that each segment must be used exactly once.
You have n n segments, which are numbered from 1 1 to n n. The length of the i i-th segment is a_i a i . A simple polygon is a polygon that does not intersect itself and has no holes. Note that a simple polygon has at least 3 3 edges and its area is not equal to 0. Determine whether you can use all n n segments to form a simple polygon with n n edges. Note that each segment must be used exactly once.
(图片来源网络,侵删)