← Back to topics
Topic

mit-indiv09-shtpaths

m
msantl
Does anybody know how to get rid of TLE ?

http://www.z-trening.com/submit.php?subm_stat=1&submit=7100070001
m
mbalunovic
If in one iteration you can't relax any vertex ( your function easy ) you can break the outer loop. That's optimisation I used.