Provincial selection Simulation Exam 1

Source: Internet
Author: User

Recently drowned by SPLAY,TREAP,DLX.

What's the feeling of not having written a test? It seems important to summarize.

T1

See codevs2466 for details.

The result of the original hash can only give 64MB (OJ is 256MB)

The water question has nothing to say. Map weight can be too

Harvest: (Study of a A-Cantor expansion)

T2

codevs2467

It seems obvious that you should sort by B first?

Feel the search is very porcelain did not think (Xiangbudao) DP is out of control

Positive solution is DP

F[I][J] Represents the former I-person, where 1 of the window is required for the time to go to J-minute

Two modes of transfer 1. i+1 person in the 1 window. At this time, the maximum value may be: The current i+1 people eat after dinner no one is eating: j+b[i] or the former I have a person than i+1 people are still late to eat f[i][j-a[i]]

2. In the 2 window, the same two modes of transfer: Sum[i]-j+b[i] or f[i][j]

Last F[n] The minimum value in a row.

Harvest: Greedy +DP combination

T3

codevs2468

In the change.

T4

Prepare to abandon the pit.

Provincial selection Simulation Exam 1

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.