Problem L. Graph Theory Homework

HDU - 6343