| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 153 |
| 2 | nik_exists | 151 |
| 3 | maroonrk | 150 |
| 4 | maspy | 149 |
| 5 | AmShZ | 146 |
| 6 | Um_nik | 143 |
| 7 | Errichto | 139 |
| 8 | adamant | 135 |
| 9 | BledDest | 134 |
| 10 | cry | 130 |
| Название |
|---|



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