Task Description: Count Maximum Trees on One Side of a Line
Functionality
Implement a function called count_max_trees_on_one_side that determines the maximum number of trees that can be found on one side of a line defined by the equation Ax + By + C > 0 or Ax + By + C < 0. The function should process multiple test cases where each test case specifies the coefficients of the line equation and the coordinates of trees.
Input Requirements
The function will take a single argument test_cases, which is a list of dictionaries. Each dictionary corresponds to a single test case and must contain the following keys:
N: An integer representing the number of trees (1 ≤ N ≤ 10^5).
A: A float representing the coefficient of x in the line equation.
B: A float representing the coefficient of y in the line equation.
C: A float representing the constant term in the line equation.
trees: A list of tuples, where each tuple contains two integers (x, y) representing the coordinates of a tree.
Output Requirements
The function should return a list of integers, where each integer represents the maximum number of trees that can be located on one side of the line for the corresponding test case.
Implementation
Write the function in a file named /app/solution.py with the specified signature:
In the example above, 3 trees lie on one side of the line defined by the equation x - y = 0. One tree at (0,0) lies on the line, while the other 3 trees are on the opposite side.
Constraints
Ensure your solution is efficient enough to handle the upper limits of the input sizes.