Stuck in QTDIVIDE spoj problem

Revision en1, by mr_knownothing, 2017-03-28 07:23:43

I was trying to solve this problem QTDIVIDE on spoj and I think it is a DP problem but couldn't solve it. Can someone help me out and point me into the right direction?

Thanks in advance!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English mr_knownothing 2017-03-28 07:23:43 262 Initial revision (published)