A country has N cities & M roads. Each city has traffic light. The light has only 2 cooler,green and red. All lights switch their cooler (G to R & R to G) in every T seconds. Initially all are green. At a city of traffic light is red then you have to wait till it becomes green. Time taken to travel through any road is C seconds.For each node x, find number of routes that will take the minimum amount of time(seconds) required to move from city 1 to N passing through city x. It is guaranteed that roadmap is connected and has. not multiple edges and self loops.
1<=N<=10^3 N-1 <= M <= N*(n-1)/2 1<=T<=10^3 1<=C<=10^3




