|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияBig thanks to author. This is my favourite problem ;) This is Dynamic BD problem. What structers are used? I used set<pair(money,numer)>(red-black tree) and finding,deleteng and inserting of data on each milliarders going, but of course there is more effective solution. SegmentTree did the trick for me |
|
|