HDU5128 practice careful degree of problem ah really ....

Source: Internet
Author: User

Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=5128

Test instructions: give you the coordinates of N (n < 30) points, and then let you find out the area of the two largest rectangles that the N points can make, the following three cases are not counted;

If there is such a two rectangle on the output of the largest area, otherwise output imp;

Analysis: Because there are only 30 points, pure violence on OK, four points, four points of enumeration, 4-layer loop is OK;

PS: Because the field on the wrong topic, did not see the edge of the rectangle is parallel to the axis, is purely in accordance with the geometry to do, in fact, there is a pit, that is, when the two rectangle nested, the output of the largest rectangular area can, can not output imp;

This is really a practice of careful degree of a topic, completely can be used in meditation!!!

HDU5128 practice careful degree of problem ah really ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.