### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,149)
- misc (2)
- project euler (2)
- puzzle (38)
- site news (44)
- tantalizer (40)
- teaser (3)

### Site Stats

- 175,242 hits

Advertisements

Programming Enigma Puzzles

10 January 2018

Posted by on **From New Scientist #1108, 22nd June 1978** [link]

Four football teams (

A,B,CandD) are to play each other once. After some of the matches had been played a table giving some details of the numbers won, lost, drawn, and so on was drawn up.But unfortunately the digits have been replaced by letters. Each letter stands for the same digit (from 0 to 9) whenever it appears and different letters stand for different digits.

The table looks like this:

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

Find the score in each match.

[puzzle57]

Advertisements

%d bloggers like this:

This Python program uses the

Football()helper class from theenigma.pylibrary. It runs in 114ms.Run:[ @repl.it ]Solution:The scores in the played matches are: A vs C = 4 – 4; B vs C = 0 – 3; B vs D = 3 – 0; C vs D = 2 – 0.The remaining matches (A vs B, A vs D) are not yet played.