I am trying to solve this dp problem in iterative way , but i got WA this my code [https://ideone.com/Etw1q8] i am creating all possible sums then minimize for ans
I am trying to solve this dp problem in iterative way , but i got WA this my code [https://ideone.com/Etw1q8] i am creating all possible sums then minimize for ans
my code work in code blocks and give the write answers, and in codeforces give me Exit code is -1073741819, and i try c++17, 14 , 11
problem [https://codeforces.com/contest/999/problem/E] code [https://ideone.com/C5tGbK]