convex4gon

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

There is a point set of nn distinct points on the xyxy-plane. (0\<n<300\<n<30) Every xx- and yy-coordinate is an integer whose absolute value is less than 10001000. 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:

  • input parameter: a list-type object L of length nn representing the point set

    • Each item of L represents a point from the point set, as a tuple of its xx- and yy-coordinates.
    • Each item of L is a tuple-type object of length 2 whose items are int-type objects.
  • return value: the int-type object representing the number of the distinct convex quadrilaterals whose vertices are from the point set