SRM 570 div2

Source: Internet
Author: User

250,500 is relatively simple, and 1000 is started after completion

It is found that 1000pt is a counting question similar to the tree-like DP. Ask you to select the total number of several vertices from the tree with 50 nodes. These vertices must be connected.

DP [I] [J] indicates the number of sub-trees with I as the root, connected to the number of solutions for J points, and then it is OK to write two loops and make a backpack.

PS: There are only half an hour left after writing three questions. I want to construct some data to prepare x persons. However, the question is too simple to start. In the end, our room was very harmonious and there was no event of X persons.

Rank 8 souvenir

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.