ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1389. Roadworks

I need u answer
Posted by 8848mzy 11 Nov 2005 12:47
The first line of input contains two natural numbers N and M (2 ≤ N ≤ 105, M = N - 1)

if m=n-1, you needn't read M.
but why intput contains two numbers

and how to solve it if it is a gragh instead a tree.