HELP needed for interesting GRAPH PROBLEM!

Revision en1, by love_u_boy, 2021-06-29 22:24:42

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English love_u_boy 2021-06-29 22:26:08 7
en1 English love_u_boy 2021-06-29 22:24:42 667 Initial revision (published)