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.
Codeforces Round 945 Solution Discussion (with myself)
Atcoder ABC #354 Solution Discussion