Problem Description
Loading...
Problem Analysis
Since the premise is that the sides of the rectangular box are parallel to the x and y axes respectively
so for each x y we only need to update minx miny maxx maxy accordingly
and we can get the coordinates of the four points
Note that
first, the input format is very unusual, so the program logic needs to be handled properly
second, when initializing, note that max should be -99999999
because point coordinates can be negative
cpp
| |
Problem address:HDU 1859 Minimum Rectangle