### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,115)
- misc (2)
- project euler (2)
- puzzle (29)
- site news (43)
- tantalizer (29)
- teaser (3)

### Site Stats

- 166,357 hits

Programming Enigma Puzzles

8 September 2014

Posted by on **From New Scientist #2453, 26th June 2004** [link]

Albion, Borough, City, Rangers and United are playing another tournament in which each team plays each of the other teams once. Two matches are played on each of five successive Saturdays, each of the five teams having one Saturday without a match.

Three points are awarded for a win and one point for a draw. The third Saturday’s matches have just been played. The current points table shows the teams standing in the order Albion, Borough, City, Rangers, United; some of these teams are tied on points and separated only by goal difference, but United have fewer points than any other team. But the United players know that if they win their last two matches their team is sure to end up with more points than any other team. Albion beat City. What are the results of the other five matches that have been played?

**Note:** I am waiting for a phone line to be connected at my new house, so I only have sporadic access to the internet at the moment.

[enigma1295]

Advertisements

%d bloggers like this:

I was a bit unsure of the best way to tackle this football problem (geddit?), it’s not as straightforward as these football problems usually are.

This Python program uses the

Football()class fromenigma.py. It runs in 579ms.Solution:The result of the other five matches are:Albion vs. Borough – win for Borough;

Albion vs. United – match drawn;

Borough vs. Rangers – win for Rangers;

Borough vs. United – match drawn;

City vs. Rangers – win for City.

The matches remaining to be played are: Albion vs. Rangers, Borough vs. City, City vs. United and Rangers vs. United. (So one week will be: B vs. C, R vs. U, and the other week will be A vs. R, C vs. U).