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 1069. Prufer Code

How dangerous it was!!!
Posted by Vigorous Pine 26 Oct 2004 18:08
1069 Pascal Accepted 0.906
I use O(N^2)
Re: How dangerous it was!!!
Posted by Roman Lipovsky 26 Oct 2004 19:28
There is O(n*log(n)) algorithm for this problem (use heap).
Re: How dangerous it was!!!
Posted by 天下无双 28 Oct 2004 16:50
呵呵。我现在用了线段树,就成这样了:
1069 Pascal Accepted 0.062 789 КБ