After staring at my code for nearly 1 hour, and even comparing <a href="https://cses.fi/paste/39929d29368d4355aac3e4/" target="_blank">my code</a> to <a href="https://github.com/ankitpriyarup/CSES_ProblemSet_Solution/blob/master/3%20Dynamic_Programming.md#array-description" target="_blank">someone's else</a> i still couldn't know why my code gives wrong answer for some testcases, is it the way I'm taking the mod ?↵
↵
↵
↵
**UPD**: Its actually 2 hours
↵
↵
↵
**UPD**: Its actually 2 hours