403103: GYM101005 F Rect
Memory Limit:4 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
F. Recttime limit per test1 secondmemory limit per test4 megabytesinputstandard inputoutputstandard output
Given points on a plane, output the area of a rectangle with its sides parallel with the coordinate axes that contains inside or on the sides at least points of the points given.
InputThe input file drept.in contains on the first lines 2 numbers and each of the following lines contains 2 numbers and describing the th point.
OutputThe output file drept.out contains the required area.
ExampleInput13 7Output
5 5
7 8
6 8
5 8
4 6
6 3
4 2
8 0
9 2
3 4
7 8
5 4
5 3
10