| # | 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 |
|
0
I will add to the intuition of why in the first place pick p, which is highest power of 2 less than or equal to k think in terms of msb's, suppose you have some element which needs to be moved out of its msb position to some lower msb position(to be sorted), then analyze this situation and see what must be the lower bound of k, you will find out the power of 2. |
|
0
for k = even case 0,n,n,n.. (our initial intuitive solution, which is wrong) claim:instead of removing set bits from one n its optimal to remove from multiple different n's in general when bit is 0 in n that means we could use 1's in their position(as xor of them is still 0, as our solution looks like ,,n,n,,) but that could increase the current ai value greater than n if we add more 1's . so in our first solution we say 0 n n n instead of removing all bits from first position, we can distribute the 1's removal from different n's, so that the value of n decreases, hence we can use our claim, here to add those extra 1's implementation is tricky, which i couldn't :( |
|
0
|
|
0
D. Gifts Order |
|
0
Method which worked for me 1.copy paste your code here and copy the output without the quotes 2.type sudo gedit /usr/share/geany/snippets.conf (or you can go to snippets.conf from the tools menu in geany) 3.under the language section which you want to change 4.aliasname=paste the op which you have copied and save it 5.open geany ,in tools -> reload configuration 6.you are done just type aliasname and then press tab, your snippet is pasted. Like in the above case under c++ section in that conf file ,i would do as customhash=the op you copied |
|
0
For someone who need a small hack test case for E Test case answer is 29, you might get 28 due to precision errors. |
|
0
I asked it to replace the defines in the code itself. Spoiler |
|
0
Click me It can be decoded back via chat gpt. |
|
+10
If you go right, you always have the chance to go down.There by you can have minimum among those both |
|
0
In problem c, doesn't the phone lose charge at 0 moment and also will the phone lose charge after it sends a message or before? could someone explain? |
|
0
|
|
0
Does anyone have a formal proof for this? |
|
0
For Problem D How Δi,j is found over there in editorial? Is there a simpler way? I did this in the below given way Found the pattern of how reversing changes the path(about what lines the pattern is reflected) and accordingly what distance each point is moving with respect to reflections, there by finding the Δi,j. |
|
0
Thanks for the comment |
|
0
Thanks for mentioning,i was not able to understand why i got tle on pretest 5. Spoiler (string should also be passed by reference) ... |
|
0
I found a interesting solution for problem B in O(number of fibonacci numbers under n) |
|
0
Can anyone explain the problem D solution? |
|
0
https://github.com/geany/geany/issues/2481 Checkout this link,for further solution |
|
-6
nice contest |
| Name |
|---|


