| # | 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 | 142 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
|
0
The solution for 414B can be more efficient regarding memory we dont need 2D dp we can easily do it using 1D dp we can make in-place changes in the dp array... as dp[i] (sequences starting with $$$i$$$) only transitions from multiples j where $$$j \ge i$$$, and I iterate $$$i$$$ from $$$1 \to N$$$, fetching dp[j] (where $$$j \gt i$$$) guarantees we are reading the value from the previous step ($$$k-1$$$) this makes the space complexity from O(n*k) to O(n) only TC is still O(k*nlog(n))
Code |
|
0
website : https://tesseract-2k26.vercel.app/sandbox First two questions on website were practice sample questions |
|
0
contest link : https://mirror.codeforces.com/contests/668703 invitation: https://mirror.codeforces.com/contestInvitation/cdcb0a8dff488daed793fb1d18a36d4056e43ce9 Editorials : https://mirror.codeforces.com/blog/entry/150754 Thanks! |
|
0
It should have been KERNEL instead of KERNAL :_( |
|
0
Contest Link : Link |
|
0
Let;s Go! |
| Name |
|---|


