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 1491. Unreal Story

TLE on test18
Posted by VolkovStanislav[MSU_Tashkent] 10 Aug 2011 15:31
I use very simple algo, prompt other algo please.

Edited by author 10.08.2011 15:32
Re: TLE on test18
Posted by Mahilewets 24 Jul 2017 01:14
Segment tree with range update,  obviously.
And even Fenwick tree with range increment. (Petr described such a Fenwick tree in his blog)