№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3843 |
2 | jiangly | 3705 |
3 | Benq | 3628 |
4 | orzdevinwang | 3571 |
5 | Geothermal | 3569 |
5 | cnnfls_csy | 3569 |
7 | jqdai0815 | 3530 |
8 | ecnerwala | 3499 |
9 | gyh20 | 3447 |
10 | Rebelz | 3409 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | maomao90 | 171 |
2 | awoo | 164 |
3 | adamant | 162 |
4 | TheScrasse | 159 |
5 | nor | 154 |
6 | maroonrk | 153 |
7 | -is-this-fft- | 152 |
8 | Petr | 146 |
9 | orz | 145 |
10 | pajenegod | 144 |
Название |
---|
Если читаешь и выводишь все через cin и cout, напиши в начале программы ios_base::sync_with_stdio(0); Будет быстрее считывать/выводить информацию.
Faster but with the same asymptotics or asymptotically faster?
Both:), any tricks with SQRT decomposition
Например, я пишу примерно так: 5999094, Pastebin
UPD. Спасибо Vladyslav, можно написать более пряморуко, 5999165 — работает за 0.248.
sorry if this is a bit off-topic, but why do u name ur input file as
stupid_rmq.in
? do u really think that RMQ-related problems are stupid?No, in the beginning I've solved first problem of this gym, and it's in/out file names was "stupid_rmq". I send it and when I started to solve the second problem, I just wrote my directives;