| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | jiangly | 3670 |
| 3 | Kevin114514 | 3657 |
| 4 | maroonrk | 3355 |
| 5 | Um_nik | 3353 |
| 6 | squareOf105 | 3346 |
| 7 | tourist | 3343 |
| 8 | strapple | 3324 |
| 9 | heuristica | 3322 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | AmShZ | 143 |
| 5 | Um_nik | 141 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 133 |
| 8 | maroonrk | 133 |
| 10 | qwexd | 130 |
|
+1
Lol, I found problem C easier than problem B |
|
0
All the best you can do it!! |
|
0
As a 1398 , I hope get to 1400+ this div 4 |
|
0
Gpt is able to solve D (I gave it some help to think but yeah) Spoiler |
|
0
gpt was able to solve d |
|
0
you gotta do 2 ups, 2 rights, and 4 downs and then your code will work fine |
|
+8
yes I did, I am the retard who did it and wasted soo much time |
|
0
dude , you did the same blunder like me, (-10^9, 10^9) fails for you too |
|
0
yeah , I understood my stuff now, it is sad that I did not see that I willl have to move 4 times at least |
|
0
thanks for trying , I am working hard to reach a higher rating so that I can switch from software to quant. lowkey gonna grind fr fr and everyday |
|
0
lowkey fr fr, I just observed that, I gave my code to gpt and it solved it in 2 mins, I am 100% sure that gpt cannot take my job as no-one can write just bad code |
|
0
yk like I am only taking 4 steps and the current answer has given 8 steps, so it seems sus in the logic |
|
0
how will it help exactly? like this is for finding the corners yk, and I feel I might have messed up here |
|
-9
I use this all the time |
|
0
Spoiler why does my logic fail for test case 5 in the div2 D ?? I think we can solve it by moving to extreme positions of the board (top right and bottom left) and then get 2 equations 2 variables to solve for the positions. Am I missing something here? |
|
0
may I know how? I used dp + fenwick trees and found it really really complex |
|
0
div2c is not a simple dp as n = 10^5, it is classic fenwick tree . like it was asked before if I am not wrong in cf |
|
0
understood, thanks alot, I just saw your solution. |
|
0
so this is the top down approach right? like we are doing something like prefix min dp? like we are updating from n to 1 right? |
|
0
I had tried to approach from the front but then how do you decide the fall back conditions on the remaining elements, like can you explain your logic with some code, I wanna try it but with little bit of hint |
|
0
not exactly , I have solved it before during the learning phase, so it is very easy and direct so i just took that code and did some modifications and pasted it here as digit dp is template based |
|
0
please send the link, lowkey problem D is already and is an direct digit dp problem. But others are hard as f like C especially |
|
0
Thank you for your thinking process |
|
0
Damm fr fr, but I am still not sure how is binary search event used, I will up solve them soon, is there any other topcis to read apart from the tags to solve it? |
|
0
I did something like this, like it is similar logic without dp |
|
+1
I took the idea that, for a given ith index (expect the first one), You need to construct the a[i] using the minimum of all the elements that occured till now. So Based on that you can maintain a set till the ith element. and then see if ~~~~~ // this is code auto it = *(s.begin()); if( a[i]<=2*it-1){ s.insert(a[i]); } else{ // failed as we cannot construct this element } ~~~~~ . Basically what we are doing is taht , for 5 6 1 1, we want to see for 5 0 0 0 , can we construct 6 or not , and given our set minimum is just 5, so we can construct next element up to 2*5 — 1 (till 11) . So , ussing this you can do this problem in O(1) per element, and overall O(n) |
| Name |
|---|


