Hartals

Computer Science Level pending

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

Consider three political parties. Assume h 1 = 3 , h 2 = 4 h_1 = 3, h_2 = 4 and h 3 = 8 h_3 = 8 where h i h_i is the strikes parameter for party i i . We can simulate the behavior of these three parties for N N number of days. We always start the simulation on a Sunday. There are no strikes parameter on Fridays or Saturdays.

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


The answer is 1303.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...