Python Forum
Task calendar problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Task calendar problem
#9
Aha, slowly I understand the problem.

If a public holiday falls on a weekend, that day or those days can be move to Monday or Tuesday?

Public holidays are generally fixed, except for those depending on the moon, like Chinese New Year, or Easter.

If we had a fixed list of official holidays to start with, that would be easier. Like January 11, February 13, March 14, April 15 ....

Of course, the day of the week will change, so the weekend would need to be pushed to another day.

Still not sure I understand this correctly:

Quote:Output a single number - the maximum possible number of consecutive days off for the residents of Flatlandia in the specified year if the weekends are moved so that the number of consecutive working days in this year does not exceed 6.

Assume people work Monday to Friday, they will never work more than 5 days in a row! Less if a holiday happens!

I will make a list of holidays, just for fun!
Reply


Messages In This Thread
Task calendar problem - by humanical - Aug-30-2023, 07:50 PM
RE: Task calendar problem - by Pedroski55 - Aug-31-2023, 06:08 AM
RE: Task calendar problem - by humanical - Aug-31-2023, 07:35 AM
RE: Task calendar problem - by Pedroski55 - Aug-31-2023, 02:14 PM
RE: Task calendar problem - by humanical - Aug-31-2023, 03:13 PM
RE: Task calendar problem - by Pedroski55 - Sep-01-2023, 05:17 AM
RE: Task calendar problem - by Pedroski55 - Sep-02-2023, 10:19 AM
RE: Task calendar problem - by humanical - Sep-04-2023, 04:08 AM
RE: Task calendar problem - by Pedroski55 - Sep-04-2023, 02:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calendar program louienyy 2 5,046 Mar-30-2020, 01:21 PM
Last Post: louienyy
Sad [Learning] Calendar without modules or list KoFu 5 4,904 Sep-09-2019, 03:25 PM
Last Post: DeaD_EyE
  Calendar calculations frequency 10 5,732 Nov-13-2018, 07:34 PM
Last Post: frequency
  Calendar calcualtions deusvult 11 8,429 May-01-2017, 02:56 AM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020