Comments

Dont think so, hello Green for me.

Nice.. i missed this

I got into similar issue during contest. I have used Math.sqrt()[java], but not sure why it was failing in 2nd testcase.

On adamantHow to read my blogs, 3 years ago
0

I guess I knew in the back of my mind about the "Two ways of explaining thing" bit. But it sure is a good bit of advice and that's my take from this blog.

I was not sure about the upper bound of i, where 1 <= i <= p. Submitted with bound to n, but then realised it should rather be 2 * n, as the formula (x + (I*(I+1))/2) has a division of 2, so the bound will be multiplied by 2 instead.

same here. Just finished writing a working code with example pretest. Waiting for the judge to finish to submit it to see if my idea is correct.

What is the meaning of this line in solution F if (brr[i] >> c & 1 ^ 1)

in the -1& case, i guess it just trying to find the mask where only the position of letter c is unset. So in my view, -1& is completely not required.

+1

When will the editorial be out?

Could you please elaborate on your F solution? How do you calculate this Therefore we can calculate the contribution of every mask[i]=(1<<26)-1-(1<<i) for i in range [0, 25] using a map. in O(n) complexity?

Thanks for the help :)

Why does the following implementation for problem D is giving TLE in TC 67 (I have followed the idea given in editorial) . Here is my implementation [CODE]

After reading your post I am totally surprised how easily you have explained the solution. Thanks though.

On EgorCHelper manual, 8 years ago
0

I was trying to solve an Interactive problem (Here is the link for the problem). Here is my solution link. Please help me what am I doing wrong. Also please tell how do I use CHelper to test my code.

Thanks for replying. I have looked at the problem and I can think that GSS1 can be solved using for states in a node in the segment tree maxsum, prefixsum, suffixsum and sum. But I am not sure how to apply the reverse operation in the problem given in my post.

can you please elaborate why binary search works here. i didn't get the last part.

On EgorCHelper manual, 8 years ago
0

Please someone help me with using Test Class for creating custom input for my Java code.