### Random Post

### Recent Posts

### Recent Comments

geoffrounce on Enigma 440: Three X | |

Jim Randell on Enigma 1588: As easy as 1… | |

Jim Randell on Enigma 440: Three X | |

geoffrounce on Enigma 1106: Not a square… | |

Jim Randell on Tantalizer 458: Knifemen |

### Archives

### Categories

- article (11)
- enigma (1,156)
- misc (2)
- project euler (2)
- puzzle (39)
- site news (44)
- tantalizer (42)
- teaser (3)

### Site Stats

- 177,401 hits

Advertisements

The following Python code runs in 51ms.

Solution:The clock was showing 11:54 when the hands were switched.And a slightly more efficient variation (although it’s not noticeably faster).

Here’s a version that finds the two times that are correct first, and then goes back to find when the hands were swapped. It runs in 34ms.

Here is my version: