Test 2015.6.26 Training Day2

Source: Internet
Author: User

Today, the Sichuan classmate abused the field Orz

Violence is hard to beat.

T1

Test instructions: Given a tree and a weighted point, a value calculation method, select a number of chains to make the most value

Positive solution: The transformation model, and then there are two algorithms, and then add some optimization can be

The surface said the tree chain split = = has been cheated, completely out of control, but the positive solution also did not listen to understand

T2

Test instructions: Give a matrix and some obstacle points, if the turn in a certain square can obtain a certain value, require the road to be continuous, to seek a legal price maximum value

Positive solution: Transform model into network stream, direct seconds

God-like transformation, but the idiot I pushed is the shortest model, directly lying

T3

Test instructions: Give an Ai calculation, I,j range, ask for sum=∑i∑j {Max A (I, j), Min A (i,j)}

Positive solution: RMQ, split optimization with Cartesian tree +treap

Hit a line tree of violence, optimized the second layer of the cycle, barely 60 points, but the evaluation machine 50 points, when the time to learn the Descartes tree is not used, but in fact it is too naive= =

By the network stream + tree chain of all kinds of God a face, already see what can be transformed into a network stream can't hear, however Cyb said a network flow although there is no egg use but can provide a good idea is it//by the way the film soul convey Cyb

You're going to have to make progress if you get abused.

But now the efficiency is low, the study is very few, writes the blog forcibly organizes oneself to be decadent, but the intention is not enough

Test 2015.6.26 Training Day2

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.