Hartals

Computer Science Level pending

Political parties in Bangladesh show their muscles by calling for regular Hartals (strikes), which cause considerable economic damage. Each party is characterized by a positive integer h called a hartal parameter that denotes the average number of days between 2 successive strikes called by the given party.

Consider three political parties. Assume Assume h1 = 3, h2 = 4 and h3 = 8 where hi is the hartal parameter for party i. We can simulate the behavior of these three parties for N number of days. We always start the simulation on a Sunday. There are no hartals on Fridays or Saturdays.

There will be exactly 5 hartals (on days 3, 4, 8, 9 and 12) over N = 14 days. How many hartals will there be in N = 3650 days?

×

Problem Loading...

Note Loading...

Set Loading...