Sliding Cost
https://cses.fi/problemset/task/1077
Can someone explain how to approach this problem.#### I was trying to do it using pdbs and fenwick tree but it showed me tle on last 4 test cases
https://pastebin.com/3qBy2WBW
| # | User | Rating |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 142 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 135 |
| 10 | AksLolCoding | 132 |
Help needed in CSES Problem
https://cses.fi/problemset/task/1077
Can someone explain how to approach this problem.#### I was trying to do it using pdbs and fenwick tree but it showed me tle on last 4 test cases
https://pastebin.com/3qBy2WBW
| Rev. | Lang. | By | When | Δ | Comment | |
|---|---|---|---|---|---|---|
| en5 |
|
AdnanShamsi | 2020-07-30 09:35:37 | 0 | (published) | |
| en4 |
|
AdnanShamsi | 2020-07-30 09:35:16 | 18 | Tiny change: 'problem.\n------------------\nI was tr' -> 'problem.\n\nI was tr' | |
| en3 |
|
AdnanShamsi | 2020-07-30 09:33:34 | 24 | Tiny change: 's problem.####\nI was tr' -> 's problem.\n------------------\nI was tr' | |
| en2 |
|
AdnanShamsi | 2020-07-30 09:32:57 | 4 | Tiny change: 's problem.\nI was tr' -> 's problem.####\nI was tr' | |
| en1 |
|
AdnanShamsi | 2020-07-30 09:32:03 | 281 | Initial revision (saved to drafts) |
| Name |
|---|


