Sunday Times Teaser 3127 – Putting in a Shift
by Bill Kinally
Published Sunday August 28 2022 (link)
Next month’s four week rota for Monday to Friday dinner duties starting on Monday 1st is covered by five teachers each having the following duty allocations. Ann, Ben and Ed each have four, Celia six and Dave has two. Strangely, all the prime number dates (1 is not a prime) are covered by Ben, Celia and Dave, while the others are covered by Ann, Celia and Ed. After working a duty, nobody works on either of the following two shifts, so anyone working on a Friday will not work on the following Monday or Tuesday. Celia has no duties on Mondays while Ben and Ed have none on Wednesdays.
In date order, who is on duty from Monday to Friday of the first week?
4 Comments
Leave one →
You are on the ball this week! Its pretty fast too.
This might be slightly faster. rd list has been made a tuple. ‘if’ statements consolidated into one and order of tests rearranged to put those that ‘fail’ the most first.