Answer to Question #45428 in Other Engineering for xxxxxxxxxxxxxxx
Input consists of four parts, viz.
First Line contains, number of modules (N), number of module dependencies (M)
Next M lines follow, each line contains two integers u, v
Next line contains Q, which is number of modules between whom dependencies need to be found
Next line contains Q integers delimited by space
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!