Spoj math1 please help

Revision en1, by HEllobrosre, 2023-10-11 06:27:26

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

Tags spoj, help me

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English HEllobrosre 2023-10-11 06:27:26 152 Initial revision (published)