UVA-562 — Dividing coins problem getting TLE

Revision en1, by ghorardim, 2017-05-20 10:45:17

I am getting TLE and I can't handle it.I know the is solved by 0-1 Knapsack.I also try this. I think i have some mistake in my code but I do not found it. Please anyone help me..... Problem :UVA-562 — Dividing coins my code :Cpp_Code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ghorardim 2017-05-20 10:46:47 2 Tiny change: 'ry this.\nI think ' -> 'ry this.\n~~~~~\nYour code here...\n~~~~~\n\n\nI think '
en1 English ghorardim 2017-05-20 10:45:17 412 Initial revision (published)