Let's talk about socks.
Aug. 25th, 2005 11:22 amFinally edited. Thanks to
tigermelp for the new clue #8. Should have a unique solution now.
I have six boxes, and 21 pairs of socks. I want to distribute the socks so that the first box holds one pair, the second box holds two pairs, etc. Given the clues below, how do I do it?
1. My socks are white, gray, brown and black.
2. I have more brown socks than white socks.
3. I have too many black socks, and can’t fit all of them into a single box. I can do that with any of my other colors, though.
4. I don’t want all of my white socks in the same box, but I don’t want any of the pairs to be alone, either. I need at least two pairs of white socks in any box that contains white socks.
5. There should be exactly one pair of gray socks in every box, except one.
6. All of the brown socks should go together, in the same box.
7. I want to get all of my black socks into three boxes.
8. Both of the socks in the second box are the same color.
I have six boxes, and 21 pairs of socks. I want to distribute the socks so that the first box holds one pair, the second box holds two pairs, etc. Given the clues below, how do I do it?
1. My socks are white, gray, brown and black.
2. I have more brown socks than white socks.
3. I have too many black socks, and can’t fit all of them into a single box. I can do that with any of my other colors, though.
4. I don’t want all of my white socks in the same box, but I don’t want any of the pairs to be alone, either. I need at least two pairs of white socks in any box that contains white socks.
5. There should be exactly one pair of gray socks in every box, except one.
6. All of the brown socks should go together, in the same box.
7. I want to get all of my black socks into three boxes.
8. Both of the socks in the second box are the same color.
no subject
Date: 2005-08-25 05:21 pm (UTC)The numbers of the socks are ok...
5 each of gray and brown, 7 black, and 4 white.
But there are two options of where they can go:
Box 1: 1 gray
Box 2: 2 black
Box 3: 2 white, 1 gray
Box 4: 2 white, 1 gray, 1 black
Box 5: 4 black, 1 gray
Box 6: 5 brown, 1 gray
Box 1: 1 gray
Box 2: 1 gray, 1 black
Box 3: 1 gray, 2 white
Box 4: 1 gray, 3 black
Box 5: 5 brown
Box 6: 1 gray, 2 white, 3 black
no subject
Date: 2005-08-26 12:33 am (UTC)Box 1: 1 gray
Box 2: 2 white
Box 3: 1 gray, 2 white
Box 4: 1 gray, 3 black
Box 5: 1 gray, 4 black
Box 6: 1 gray, 1 black, 4 brown
no subject
Date: 2005-08-26 12:51 am (UTC)no subject
Date: 2005-08-26 06:52 pm (UTC)xxxxxx
Guess Who
no subject
Date: 2005-08-29 06:03 pm (UTC)no subject
Date: 2005-08-29 06:08 pm (UTC)