Ultraviolet A 810, uva810

Source: Internet
Author: User

Ultraviolet A 810, uva810

This question is hard to understand... so I don't want to do it.

Meaning :!

Place the sieve in an initial position to know its initial status (determined by the top points and the top points)

In four directions. The condition that can be flipped: if and only if the number of points at the top of the current position is the same as the number of points at the next position.

If you can flip it back. Output path.


The difficulty lies in how to know the die just rely on the front and top side> ....

You can create a big one ~~~~ Table... In fact, you don't need to create all tables ~ Because the sum of the two sides of the dice is 7;


Then there is the path output, which is why the queue is written without queue in BFS-you can save the parent node (for the moment, this is called it, used for final output ~


Code:

No code .... Http://blog.csdn.net/accelerator_/article/details/39966329


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.