| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 (추가 시간 없음) | 1024 MB | 29 | 21 | 20 | 76.923% |
There is a point set of $n$ distinct points on the $xy$-plane. (0ドル<n<30$) Every $x$- and $y$-coordinate is an integer whose absolute value is less than 1000ドル$. No three distinct points from the point set lie on the same line. We want to count the number of the distinct convex quadrilaterals whose vertices are from the point set.
Write a function convex4gon:
list-type object L of length $n$ representing the point set
L represents a point from the point set, as a tuple of its $x$- and $y$-coordinates.L is a tuple-type object of length 2 whose items are int-type objects.int-type object representing the number of the distinct convex quadrilaterals whose vertices are from the point setPyPy3