Uva-211-the Domino Effect

Source: Internet
Author: User

Http://uva.onlinejudge.org/external/2/211.html

Http://uva.onlinejudge.org/external/2/211.pdf

Test Instructions : each domino (Bone) corresponds to two balls (PIP).

The value of the ball from 0-6. Dominoes since 1-28.

Then give you a matrix (7*8) that includes the value of the ball. Ask you what kind of dominoes will form this matrix of balls.

Attention. The topic has a message that is not clear, that is, each domino can only take one, and to take all the 28 kinds of dominoes. 7*8/28 = 2.

idea : For each domino. First, look for the ball pair that can form the domino from the Matrix.

Some dominoes can be formed in many ways,

Some dominoes may only have a way of forming, so consider a domino that is less formed. Sort.

After. Enumerate the ways in which each domino is formed by violence. If there is a conflict, pass.





Uva-211-the Domino Effect

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.