Skip to content

Sunday Times Teaser 3127 – Putting in a Shift

by BRG on August 26, 2022

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?

From → Uncategorized

4 Comments Leave one →
  1. Brian Gladman permalink

  2. John Z permalink

    • Brian Gladman permalink

      You are on the ball this week! Its pretty fast too.

  3. John Z permalink

    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.

Leave a comment to John Z Cancel reply

Note: HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS