https://atcoder.jp/contests/dp/tasks/dp_e
this is knapsack problem with tough constraints so making dp table is not feasible (100*(10^9))
How this can be approcahed ?
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Kevin114514 | 3655 |
| 3 | Benq | 3650 |
| 4 | maroonrk | 3427 |
| 5 | strapple | 3413 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | tourist | 3301 |
| 9 | turmax | 3297 |
| 10 | squareOf105 | 3262 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | maspy | 150 |
| 2 | nik_exists | 150 |
| 4 | Um_nik | 144 |
| 5 | Errichto | 139 |
| 6 | adamant | 136 |
| 7 | AmShZ | 134 |
| 8 | maroonrk | 133 |
| 8 | BledDest | 133 |
| 10 | Dominater069 | 129 |
https://atcoder.jp/contests/dp/tasks/dp_e
this is knapsack problem with tough constraints so making dp table is not feasible (100*(10^9))
How this can be approcahed ?
| Название |
|---|



sorta like coin exchange problem, where you try to get the minimum weight for each possible value
https://www.youtube.com/watch?v=FAQxdm0bTaw