Noip 2012 Improved group Day1 Drive Drive Travel __noip

Source: Internet
Author: User

Noip 2012 Improved group Day1 Drive drive Trip

1. First sweep the next sample, looked at the data range, understand, if the sort, bubble is impossible, need to quickly sort.

2. Collect retrieving and begin to read the topic. The urgent matter, according to the idea, understand the sample.

3. Sample 1 Read, recursion is obvious, because there are obvious end conditions, dfs+ backtracking.

4. Example 2 read it, initially thought X0 is superfluous, after reread the topic, only then discovers X0 and Xi may unequal, the X0 tube output first Data, Xi tube next data, the basic idea is X0 and Xi to find the maximum value to calculate, notes the smaller value corresponding data.

5. Think about it, should be able to make.

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.