|
0
same, I thought it was wifi problem so I had a thought getting changed my wifi provider |
|
0
how to do d using dp? |
|
0
how to do d using dp ? |
|
-14
you werent lazy , i just copied dsu , and did some changes in code :D |
|
0
thanks , i need to study lca :| |
|
0
any one go idea how to do it usign bfs in undirected graph? |
|
0
can i get discord sever link :) |
|
0
i was having same logic ,but dont know how to implement , really nice implementation. |
|
0
how it will be working for this then : aabb ,if it count for prev only i know im wrong , but i dont know how |
|
0
i think because of your upper bound , array must me sorted . |
|
+5
division is done because the same pair will be counted twice and not sure but the condition checks that if we should not count the same index value as we should have two value from different index |
|
0
deleted |
|
0
thanks man |
|
0
the round was amazing, can anyone help me identify the error in 114652844 to problem c, my approach is similar to the edi. |
|
0
can any one tell what's wrong in my solution to c1 , my idea : to generate all subset (sum it ) and put it in set and check whether it is present or not 114425157 |
|
0
eg 5 3 . . . . . then AND_pref2 = 1 and AND_pref1 = 5 . generally it means by taking and operation you'r AND_pref will decrease(same for AND_suf) and for every i if it is valid permu then it would be equal. |
|
0
i like the popovers. |
|
0
use map |
|
0
thanks, great exp. |
|
0
overflow |
|
0
ps :) i was wrong |
|
0
it helped after 5 year of you exp. |
|
0
why it is giving tle 104708084 any suggestions ( problem B) |
|
+5
!NotFake |
|
0
look like you found. |
|
0
same story bro :( |
|
0
new year gift :P see the magic tab |
|
0
great work |
|
0
did anybody get the idea of B soln 1? |
|
0
i did not get the logic behind your solution, can you explain. |
|
0
thanks, I feel dumb now . |
|
0
what should i change in my solution C to get ac 102883253 , thank you and HAPPY NEW YEAR |
|
0
length should be even. edit: if you meant there are only '?' |
|
0
got it, thanks man. |
|
0
I think I got it, but I have a little doubt, for the ignored command to be successful we had to measure the distance from the point(max) where our previous command had been successful (i.e: from the next point it had been unsuccessful)? |
|
0
if i am not wrong you are trying to say that command is successful if robot receive command at t[i] which robot ignores when moving to x[i-1], if that's the case then why in the first test case why the last command is successful. |
|
0
can somebody explain what is the meaning of the below line's from problem c, thanks? You call the command i successful, if there is a time moment in the range [ti,ti+1] (i. e. after you give this command and before you give another one, both bounds inclusive; we consider tn+1=+∞) when the robot is at point xi. Count the number of successful commands. Note that it is possible that an ignored command is successful. |
|
0
TO_OO_EndGame can you explain the logic behind your solution |
|
0
can any one explain why in problem A. regular brackets sample test case 3, answer is 0 ( ( ( ) ) ( ) ) |
|
0
can someone view my problem 94937826 , why it's giving runtime error (cod 11) in which part of code , it is working fine on offline editor |
|
0
Yeah , thanks bro.. |
|
0
I had read the problem 1418B - Negative Prefixes for more than 40 min and after that I had read the solution but I wasn't able to understand these lines in block ,can any one help , I think it says we need to find array so that it prefix sum array should be like starting from negative elements and once the positive element came then there should be no negative elements(all elements after that are positive) like eg [−8,−14,−13,−9,−5,2,0] and as given in solution and k is 5 , and we need to reduce the k some and propose a solution ,but that was not the case thanks in advance |
|
0
okay,thanks |
|
0
can some one explain how can i made this code more efficient (pluses and minuses) my submission is 85773685 |
|
0
can any one explain me why i am getting TLE on 5th test case my sublission is 85516199 |
|
0
Please Someone Explain Why i am Getting TLE in Test case#5 my submission is : 85516199 |