UVA 810-a Dicey Problem

Source: Internet
Author: User

This problem test instructions understand very difficult .... So I don't want to do

Copy Test instructions:!

Place the sieve somewhere in an initial position, knowing his initial state (determined by the top point and the front point)

Flips in four directions. Conditions that can be flipped: when and only if the number of points at the top of the current is the same as the number of points in the next position.

If you can flip it back. The output path.


The difficulty is how to know the just rely on the front and top side>

Can play a big ~ ~ ~ ~ Table ... Actually do not have to play all the table ~ because the dice relative to the two sides and = 7;


Then is the path output, which is why in the BFS, without the queue and use the handwriting queue reason-can be the parent node (so called//) to save, for the final output ~


Code:

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


UVA 810-a Dicey Problem

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.