← Back to topics
Topic

bankomati TLE

hendrik
Hi guys,
Help...me...someone who has got AC....

is there any optimization u could give me to make my program run in time...?

source code: http://www.z-trening.com/new/www/html/submit.php?submit=7100049189&subm_code=1
hendrik
hello... can someone help me... please
dimke
Try to speedup greedy :)
Dgleich
Try Increasing Dp array to 3500000
dimke
There's no need to, 1000001 is enough
hendrik
oh thx
i will try it....

edit: finally AC fiuh thx a lot guys for ur suggestions
dimke
np :)
MilosRadic
why is 1000001 enough?