North America-greater NY 2013__acm_ Game

Source: Internet
Author: User

Reprint please indicate the source, thank http://blog.csdn.net/ACM_cxlove?viewmode=contents by---Cxlove

A: Directly enumerate the island's two endpoints, both sides should be low, the middle part can not lower than the two ends.


B: Directly calculate the meeting time of two bicycles.


C: According to the topological order of violence.


D: Direct Violence for circulation section


E: The principle of tolerance, enumeration before I have how many are right, the rest of the arbitrary.


F:dp,dp[i][j][k] represents the case of three rows.


G: For a point with a degree of 1, the other two endpoints of the triangle are definitely at the end of the first non 0 on both sides of the vertex.


H: Play the table to find the law, found the answer is P ^ {i-j} */binom {i}{j}


I: Try for the fruit ... It's a hole left in the geometry. Probably there is a triangle, find a point, make/sum_{i = 0}^{2} {(0.2 + e[i]) * Dist[i] ^ 2} minimum.

Tried a simulated annealing, failed.

To push the formula, first find the triangle three edge of the linear equation, and then to the distance, get the formula, and then analyze the maximum value. Theoretically it should be done, but I am lazy and find the formula more complicated ....


code:https://github.com/cxlove/acm_icpc/tree/master/regional/north%20america%20-%20greater%20ny_2013


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.