### Random Post

### Recent Posts

- Tantalizer 450: Marriage problems
- Enigma 1057: Recycled change
- Enigma 452: Figure out these letters
- Puzzle 46: I lose my specs
- Enigma 1058: A row of colours
- Enigma 451: Double halved
- Tantalizer 451: Death rates
- Enigma 1059: Century break
- Enigma 450: A pentagonal problem
- Puzzle 48: Verse on the island

### Recent Comments

Jim Randell on Tantalizer 450: Marriage … | |

Brian Gladman on Enigma 1057: Recycled cha… | |

Jim Randell on Enigma 1057: Recycled cha… | |

geoffrounce on Enigma 452: Figure out these… | |

Jim Randell on Enigma 452: Figure out these… |

### Archives

### Categories

- article (11)
- enigma (1,183)
- misc (2)
- project euler (2)
- puzzle (46)
- site news (46)
- tantalizer (50)
- teaser (3)

### Site Stats

- 184,975 hits

Advertisements

Programatically it is straightforward to examine all possible selections of cards. This Python program runs in 34ms.

Solution:The first card is the Jack of Hearts. The second card is the Jack of Clubs.The same logic (not surprising) but I thought it would be nice to try a different implementation approach. It runs in 1ms on my machine using profile based timing.

I imagine one could use Excel here, as Tessa pointed out for no. 260.

What a pity that Microsoft, having helpfully included logical operators in Excel, keeps so very quiet about them. It’s hard to find out from other sources, too, how to use them in practice.