|
0
yeah this logic is incorrect because i might miss some of the edges which could help reduce the overall cost see this example copied from above cmt 5 5 15 19 13 19 13 24 14 20 13 2 10 20 10 2 6 4 2 4 5 |
|
0
For problem D, can somebody point out what's wrong in my approach
My Submission |
|
0
i figured out the error in my code, fixed it and got it AC, thanks for the nicest and simple solution compared to the editorial |
|
0
looks like you haven't tested this algorithm yourself, because i have implemented the exact same logic but this solution gets TLE, i just can't make out. Can someone please help find whats wrong here : My Submission |
|
0
Any help for problem m F |
|
On
cdkrot →
Editorial of Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 6 years ago
0
did u get how is this code working ? |
|
On
cdkrot →
Editorial of Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 6 years ago
0
in regards to (above mentioned solution) this , can you please explain these two lines
what is the purpose of adding "n-i" to every lst , and what values will "lst" will hold after this.
how is this calculating answer |
|
0
Please find the error in my code i don't know what's going wrong here My Submission for Problem D |
|
0
Have you tried this also on the test cases ? |
|
+8
Two doubts for problem D editorial
|
|
On
MikeMirzayanov →
Technocup 2020 — Elimination Round 4 + Codeforces Round 606: Editorial, 6 years ago
-7
thanks man, easier than the editorial |
|
+2
AnyOne who can help me with Grid Shuffle problem at least the approach |
|
+1
Thanks a ton brother |
|
0
Can someone help find out why the hell am i getting runtime error,(problem F1) my submisssion https://mirror.codeforces.com/contest/1203/submission/58887999 |
|
-9
a |
|
0
Shouldn't the L array be calculated on right of i'th element instead of j < i and similarly for R array , If I'm wrong correct me , you are trying to calculate for each i'th element the no of elements which are lesser than a[i] to its left and right (to whatever position we can extend the left and right boundaries ) |
|
0
Bro can u explain how are you able to calculate no i*i % m = k for a particular val |
|
0
what is the inital value of dp ( i mean before recurring loop ) |
|
0
why k can't be 5 in above case |
|
0
one type of bracket or just any one bracket (i don't get the logic for above example) , also then how come answer to 6 (((()) is 3 |