|
0
It's working for me i just changed the Chelper dependency scope from "Provided" to "Compile" |
|
+3
Actually if the ith loop is written first and then the jth(logN one) then, Suppose if you are computing the value for i = 0, j = 2 and U[i][1] = 2 then for computing the value for U[0][2] you need the value for U[2][1] which is not computed until now. The updated query is picked up directly from the LCA tutorial of topcoder :) |
|
+3
I just reviewed your code which uses a stack. P.S -> I prefer doing query with something like this Updated Query |
|
0
Can you explain your logic behind E ?? |
|
+9
At each child j, you have the option to select It's the same as the proof of finding no of divisors of any number using prime factorization where, |
|
0
it seems codeforces is improving my english too. |
|
0
Thanks. |
|
0
In problem "Laundry" , what this statement actually meant :- clothes belonging to different persons may not be fastened with clothespins of the same color ?? |
|
+1
See this link , for understanding various usage of BIT. For problems, follow this link :- |
|
0
This problem asks you whether there is a way to reach the end point from the starting point without being detected. You can make at most v moves during day or night. In each move you can move to adjacent cell (left,right,top,down). If you move during the day you can move from one 'F' to another 'F' only, since forest provides you cover, while during night you can move anywhere since the night provides you cover. It doesn't matter how many days or night you take to reach the end point. |
|
0
You can try this problem Unlucky Strings This problems uses |
|
0
No, I'm not able to do that either. But I just wanted to ask , how am I supposed to know that these type of solutions will pass or am I supposed to just go with my intuition. |
|
+5
ohh, i think like adamant , feeling proud of myself :P |
|
+9
sorry, seems i commit mistakes even after the contest. |
|
+10
I solved it using segment trees (sadly after the contest). Initially set all the values to 0 and the if a query(L,R,V) comes, update all the values in the range(L,R) with ( |
|
0
thanks ikbal got AC with automation method too :) |
|
0
Great info, will remember to use it the next time :) Thanks |
|
+1
thanks mnbvmar and Elk-Cloner. :) |
|
0
can you explain to me your computation analysis of why it won't fit inside long long range. If you can, provide me the link to your big integer implementation. P.S -> I tried using |
|
+3
Thanks a lot for the suggestion. I was able to figure out my mistake by generating random cases . :) |
|
0
|
|
0
Thanks for the explanation. |
|
0
I still haven't been able to understand the problem statement of problem E. So please explain what are we supposed to do in case of a query of Type 2 ? :( |