P7934 [COCI 2007/2008 #5] JABUKE
Description
Given the coordinates of the three vertices of a triangle and the coordinates of $N$ points, please calculate the area of the triangle and, among these $N$ points, how many points lie inside the triangle (including the boundary).
Input Format
The first three lines each contain two integers, representing the coordinates of one vertex of the triangle.
The next line contains one integer $N$.
The next $N$ lines each contain two integers $x_i,y_i$, representing the coordinates of the $i$-th point.
Output Format
The first line contains one real number, representing the area of the triangle, rounded to one decimal place.
The second line contains one integer, representing the number of points inside the triangle or on its boundary.
Explanation/Hint
For $100\%$ of the data, $1\le N\le100$, and all coordinates $x,y$ are positive integers less than $10^3$.
**Hint: The area formula for a triangle with vertices $(x_A,y_A)$, $(x_B,y_B)$, and $(x_C,y_C)$ is:**
$\dfrac{|x_A(y_B-y_C)+x_B(y_C-y_A)+x_C(y_A-y_B)|}{2}$
The score for this problem follows the original contest settings, with a full score of $30$ points.
Translated by ChatGPT 5