All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic
Card game III (Posted on 2014-03-04) Difficulty: 2 of 5
In a certain card game, one of the hands dealt contains:
  1. Exactly thirteen cards.
  2. At least one card in each suit.
  3. A different number of cards in each suit.
  4. A total of five hearts and diamonds.
  5. A total of six hearts and spades.
  6. Exactly two cards in the "trump" suit.
Which one of the four suits -- hearts, spades, diamonds, or clubs -- is the "trump" suit?

No Solution Yet Submitted by K Sengupta    
Rating: 3.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Python solution | Comment 3 of 5 |

for h in range(1,7):
  hdsc = set([h, 5-h, 6-h, h+2])
  if len(hdsc) == 4 and 2 in hdsc:
    print 'H: %d D: %d S: %d C: %d' % (h, 5-h, 6-h, h+2)
 

 

 

This produces the answer

H: 4 D: 1 S: 2 C: 6

So Spades is the trump suit.

Edited on March 4, 2014, 11:08 am
  Posted by tomarken on 2014-03-04 10:56:28

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2017 by Animus Pactum Consulting. All rights reserved. Privacy Information