TLE using DP ?? TimusOJ

Revision en4, by suraj021, 2015-06-26 21:48:15

I was solving problem Metro in TimusOJ using DP but it get TLE verdict.How do i optimize my solution. My Solution in Ideone . Thanks Sorry for wrong link. UPD: Accepted, Thank you codeforces community :)

Tags dp, timus, shortest

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English suraj021 2015-06-26 21:48:15 50 Tiny change: 'rong link.' -> 'rong link.\nUPD: Accepted, Thank you codeforces community :)'
en3 English suraj021 2015-06-26 18:16:35 71
en2 English suraj021 2015-06-26 16:16:00 30 Tiny change: 'E verdict. My [Solu' -> 'E verdict.How do i optimize my solution. My [Solu'
en1 English suraj021 2015-06-26 16:14:52 233 Initial revision (published)