Cheryl's birthday: Difference between revisions
→Functional Python: Minor tidying, reordering of comments.
(→Functional Python: Minor tidying, reordering of comments.) |
|||
Line 1,423:
(month, day) = (0, 1)
print(
# (A's month contains only one remaining day)▼
# (3 :: A "Then I also know")
▲ # (A's month contains only one remaining day)
uniquePairing(month)(
# (B's day is paired with only one remaining month)▼
# (2 :: B "I know now")
▲ # (B's day is paired with only one remaining month)
uniquePairing(day)(
# (1 :: A "I know that Bernard does not know")
monthsWithUniqueDays(False)([
# 0 :: Cheryl's list:
'May 15, May 16,
)
)
|