I just have to tell you that I have made a problem using polygon. I was just thinking why would not I share it to you guys. Must try to solve it. Please also suggest me what will be the estimated difficulty level of the problem.
This is a whole contest made in polygon. But to do this problem accept the contest invitation and open the problem:I
It says I'm not allowed to view it.
sorry, use this invitation link and open the problem I.
Auto comment: topic has been updated by Muhammad.Ahmad (previous revision, new revision, compare).
One general advice about contest preparation — it's usually not a good idea to write who made the problems on the problem itself. Such information is better given in the editorials, as bad things may happen (say, massive amounts of downvotes) to the problemsetter if a participant has bad feelings about a certain problem during the competition.
I think there's something missing, like if our tree is something like this :
there is two possible ways to fix the roads :
Also I think the problem(if we ignore the issue) can be solved in O(nlogn) time
That's not an issue. If you have multiple solutions, you can give any of them. for example if there is a whole road broken. You can fill it either ways, (top to bottom) or (bottom to top).