Strange Runtime error
Hi everyone.
I was trying to solve small input for this problem using recursive dp.
But it gives a strange runtime error when n >= 180000.
this my code
Any helps.
Atcoder ABC #358 Solution Discussion
Codeforces Round 953 Div 2 Solution Discussion (with Jan)