### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,314)
- misc (3)
- project euler (2)
- puzzle (78)
- puzzle# (21)
- site news (54)
- tantalizer (80)
- teaser (7)

### Site Stats

- 217,164 hits

Programming Enigma Puzzles

11 July 2018

Posted by on **From New Scientist #1000, 13th May 1976** [link]

Loose Chippings horticultural club used to be an all-male preserve. But last year a row about whether there should be a prize competition for garden gnomes at the annual show led mysteriously to ladies being allowed to compete in all events. This lapse turned out disastrously, since the Misses Mulch then carried off all the prizes in all the events.

Each sister in fact won exactly two prizes, being the only person to gain prizes in both her successful events and having just one sister who got prizes in neither. Scoring was the usual 3 for 1st prize, 2 for 2nd and 1 for 3rd. Clara (a prize for veg. and the other for cut flowers) tied with Mildred (a prize for fruit and a better prize for shrubs). There were no other ties or any shared prizes and no sister won two prizes in the same event.

Precisely which prizes did Clara and Mildred win? And was there a prize competition for gnomes?

[tantalizer449]

%d bloggers like this:

Each sister won two events, and scored 1, 2 or 3 points in each event. Giving possible total scores of: 2, 3, 4, 5, 6. And only only two of the sisters achieved the same total. So there can be no more than 6 sisters. And each sister won exactly 2 prizes, so there can be no more than 12 prizes in all.

But each event has three prizes, and we a given the names of 4 of the events, so there must be at least 12 prizes awarded.

So there must be exactly the 4 events we are given (so there is no event for gnomes), and there must be 6 sisters.

There are 24 points to be awarded in total, so the total of 4 must have been achieved by Clara and Mildred.

The only two ways to achieve a total of 4 points are 1+3 or 2+2.

Mildred did better in shrubs than in fruit, so must have scored 3 (1st place) for shrubs and 1 (3rd place) for fruit.

The only way to achieve a total of 2 points is 1+1; 3 points = 1+2; Mildred’s 4 point total is 1+3, so all four 3rd places are used up, so Clara’s 4 point total must be 2+2 (so Clara got 2nd place in veg and 2nd place in flowers); 5 points = 2+3; 6 points = 3+3. This uses up each score 4 times.

Solution:Clara got 2nd place in veg and 2nd place in flowers. Mildred got 1st place in shrubs, and 3rd place in fruit. There was no event for gnomes.The following diagram shows a possible assignment of points to the sisters in each of the events:

For each pair of events there is exactly won sister that won prizes in both events, and one sister who won prizes in none:

Once we have the scores for Clara and Mildred there are 6 ways to complete the table.

Here’s a

MiniZincmodel that uses the fact that there are 4 events and 6 sisters to fill out the table:And here’s a Python program that uses the

minizinc.pywrapper library to format the output: