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 1028. Stars

I have solution, but I need some help.
Posted by I.J. Matrix 13 Jun 2002 00:00
I have an O(n*log(n)) algorithm, which works successfull on all test
cases at my Celeron 300. The time of working is incredible low (I
used test with 15000 stars), but timus gives me Time limit exceeded.
If anyone here has an idea where is the matter, I am ready to share
my program with him.
Re: I have solution, but I need some help.
Posted by daizi sheng(from USTC) 13 Jun 2002 19:11
Mine is O(C*n).C is a constant number!
Consider the most difficult way to make your programme been dead!
Do not ignore any side!
If your programme is written in C or C++,
maybe I can help you!
Send it to my box:ls223224@163.com!
Re: I have solution, but I need some help.
Posted by lylihongyu 16 Sep 2015 19:40
为什么你这么叼,O(n)就解决了。???
Re: I have solution, but I need some help.
Posted by Rabbit Girl ♥ 3 Jul 2018 14:39
You know, if you'll always allocate a segment tree of size upper bound of N you will indeed acquire an O(n) solution... Although, it will be actually slower than the O(nlogn) one.

I mean, boasting about your (undescribed) O(n) is never a good thing. (And also, I wanna boast with my algorithm theory knowledge and tell you that "O(C*n).C is a constant number!" looks quite silly).