without creating reference variable of dp array — https://ideone.com/SquMtZcodeforces.com/contest/1271/submission/76026065↵
with creating reference variable of dp array — https://ideone.com/ubpfJ5codeforces.com/contest/1271/submission/76032760↵
↵
In one solution I am not creating reference variable ans and solving normally gave WA while making reference variable gave AC .I am unable to find error in my both code rest parts are exactly same .Please look into it.↵
Problem link : https://mirror.codeforces.com/contest/1271/problem/D
with creating reference variable of dp array — https://
↵
In one solution I am not creating reference variable ans and solving normally gave WA while making reference variable gave AC .I am unable to find error in my both code rest parts are exactly same .Please look into it.↵
Problem link : https://mirror.codeforces.com/contest/1271/problem/D