|
|
Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения | Last place in time rating | Fetisov Alex [Psych Up club] | 1829. Таблицы маршрутизации | 1 мар 2012 12:33 | 1 | Uncompressed interval tree, and long longs everywhere -> AC with > 1,9 sec :) It is the last place now :) | Why TL is so large? | Vedernikoff 'Goryinyich' Sergey (HSE: АОП) | 1829. Таблицы маршрутизации | 11 апр 2011 02:40 | 3 | The problem is just working with arrays, the most difficult part is sorting, the rest is O(N) - why TL is 2 sec., especially given that there are more time-intensive problems with TL 0.5 sec.??? My very inefficient solution with long long's got AC in 0.125 sec, so 1 sec. here is more than enough... As you can see, your "very inefficient solution" is the best solution now. :) By the way, current best Java solution works 0.625 sec. Hm, really funny =) Interesting to know, what algo did other guys use... And what's bottleneck for Java solutions? Input, or something else? As for my question - still, as you can see, currently only one solution for this problem has runtime more than 1 sec., and in problem 1827, for instance, almost half of the solutions got TL, and I think many of them have runtime bit more than 1 sec. I just wanted to say that timelimit policy should be consistent - if you impose quite strict timelimits for other problems, it is quite strange to give more here... | What is the meaning of this problem? | Martin | 1829. Таблицы маршрутизации | 19 мар 2011 19:57 | 2 | Each routing table defines what gateway to use for every possible address (or that there is no gateway for some addresses). Hence, both routing tables from the input are mappings from addresses to gateways. The problem is to check equivalence of these mappings. |
|
|
|