### Random Post

### Recent Posts

### Recent Comments

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… | |

Jim Randell on Enigma 1627: A riddle for the… |

### Archives

### Categories

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

### Site Stats

- 184,903 hits

Advertisements

We can use the

SubstitutedExpression()solver from theenigma.pylibrary to solve Alphametic problems like this one. Here I introduce the lower-case lettersa,b,c,d,e,f,gto stand for the “wildcard” symbols.Here is the run file. It executes in 98ms.

Solution:GIFT = 9671.It is not necessary to use the information that

O=0(although we can add an--assign="O,0"parameter to the run file if we like). Similarly it is quite obvious thata=1. Using both of these restrictions reduces the execution time to 77ms.I used the same lower case letters and also found the elements of the multiplication sum