Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя MarioYC

Автор MarioYC, 12 лет назад, По-английски
I was looking at solution 810236 from hpfdf and also other users, who only for every query "add l r d" do a for loop from l to r and make at most two update operations in a BIT.

Why does this work? I think something like this would do more than 109 operations.
Разбор задач Codeforces Beta Round 91 (Div. 2 Only)
  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

12 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
I think the data is rondom,so the length of each query range is not large.I also used a BIT to solve this problem although it is not the best solution.
»
6 лет назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

I think that because of this condition:

The operations are such that after all additions the array won't have numbers that would exceed 104