I have a question , need fast response to two types of operations:
1 x y element on position x become y;
2 x y number of distinct numbers from the interval [ x , y ]; How to solve this problem,can someone help me??
| № | Пользователь | Рейтинг |
|---|---|---|
| 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 | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 134 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
Distinct numbers on an interval
I have a question , need fast response to two types of operations:
1 x y element on position x become y;
2 x y number of distinct numbers from the interval [ x , y ]; How to solve this problem,can someone help me??
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en6 |
|
Omega1 | 2015-07-04 14:42:44 | 37 | ||
| en5 |
|
Omega1 | 2015-07-04 14:42:12 | 60 | ||
| en4 |
|
Omega1 | 2015-07-04 14:37:25 | 7 | Tiny change: 'ition x being y;\n\n**2' -> 'ition x become y;\n\n**2' | |
| en3 |
|
Omega1 | 2015-07-03 20:40:49 | 2 | Tiny change: 'being y;\n**2 x y*' -> 'being y;\n\n**2 x y*' | |
| en2 |
|
Omega1 | 2015-07-03 20:40:16 | 2 | Tiny change: 'rations:\n**1 x y*' -> 'rations:\n\n**1 x y*' | |
| en1 |
|
Omega1 | 2015-07-03 20:39:48 | 255 | Initial revision (published) |
| Название |
|---|


