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 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | turmax | 3559 |
| 6 | tourist | 3541 |
| 7 | strapple | 3515 |
| 8 | ksun48 | 3461 |
| 9 | dXqwq | 3436 |
| 10 | Otomachi_Una | 3413 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | adamant | 153 |
| 3 | Um_nik | 147 |
| 4 | Proof_by_QED | 146 |
| 5 | Dominater069 | 145 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
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 |
|---|


