### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

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

### Site Stats

- 184,820 hits

Advertisements

Programming Enigma Puzzles

19 August 2016

Posted by on **From New Scientist #1507, 8th May 1986** [link]

In the following football table and addition sum letters have been substituted for digits (from 0 to 9). The same letter stands for the same digit wherever it occurs and different letters stand the different digits.

The four teams are eventually going to play each other once – or perhaps they have already done so. The score in each match is different.

(Two points are given for a win and one point to each side in a drawn match).

Find the scores in the football matches and write the addition sum out with numbers substituted for letters.

[enigma358]

Advertisements

%d bloggers like this:

This kind of problem can be solved with a combination of the

Football.substituted_table*()andSubstitutedSum()solvers from theenigma.pylibrary.This Python program runs in 73ms.

Solution:The scores in the played matches are: A vs B = 1-0; A vs C = 0-0; A vs D = 3-0; B vs C = 2-2; B vs D = 2-1; C vs D = 4-4. The addition sum is: 42 + 54 = 96.