FI'm getting TLE on three task cases. Can someone tell me why? My code: http://www.z-trening.com/new/www/html/submit.php?submit=7100048898&subm_code=1
hProblem is in line 'for a:=br to x+d do ...'
Try to subract s[a-d-1] and add s[a+d] to result (in your case niz[a]); i think you should use 's' as array (according to your idea). A bit change idea.