PROJECT EULER · #0645
Every Day Is a Holiday
On planet J, a year lasts for
- At the beginning of the reign of the current Emperor, his birthday is declared a holiday from that year onwards.
- If both the day before and after a day
are holidays, then also becomes a holiday.
Initially there are no holidays. Let
You are given
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.