← All problemsSign in

Points and Convex Hulls

CodeChefRating 2829Open on judge ↗

**New constraints are not updated in the translations.** You are given $N$ distinct points on a two-dimensional plane. It is guaranteed that no three of them are collinear. Let's call a subset of these points *compact* if the [convex hull](https://en.wikipedia.org/wiki/Convex_hull) of this subset has exactly four vertices. Find the number of compact non-empty subsets of the given points. Since

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start