P3117 [USACO15JAN] Cow Rectangles G
Description
The locations of Farmer John's N cows (1
Input Format
The first line of input contains N. Each of the next N lines describes a cow, and contains two integers and a character. The integers indicate a point (x,y) (0
Output Format
Print two integers. The first line should contain the maximum number of Holsteins that can be enclosed by a fence containing no Guernseys, and second line should contain the minimum area enclosed by such a fence.