| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | adamant | 152 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 144 |
| 5 | errorgorn | 141 |
| 6 | cry | 139 |
| 6 | Proof_by_QED | 139 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
| Название |
|---|



Если читаешь и выводишь все через 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;