|
+6
Inspired by galen_colin I maintain this Google Sheet CP sheet |
|
On
Pyqe →
Codeforces Round #831 (Div. 1 + Div. 2, based on COMPFEST 14 Final) Editorial, 3 years ago
0
Thanks! Got it. I made a mistake with my reasoning. |
|
On
Pyqe →
Codeforces Round #831 (Div. 1 + Div. 2, based on COMPFEST 14 Final) Editorial, 3 years ago
0
I did consider this case in my dp. I did this. My code failed anyways. Thanks |
|
On
Pyqe →
Codeforces Round #831 (Div. 1 + Div. 2, based on COMPFEST 14 Final) Editorial, 3 years ago
0
In Problem E, can anyone explain why we would ever do this? ->If card i is used in the longest non-decreasing subsequence, then the maximum answer is the maximum value of dist(j,i) for all j∈Di. Can someone give a small counter example where doing just this (->If card i is not used in the longest non-decreasing subsequence, then the maximum answer is the sum of dp values of all of the children of i.) will fail. |