https://www.spoj.com/problems/MATH1/ I need help, the tl is 20s, I assume the solution is n^3 with some dp, but don't know how to
Spoj math1 please help
https://www.spoj.com/problems/MATH1/ I need help, the tl is 20s, I assume the solution is n^3 with some dp, but don't know how to