matrix chain problem

visit shbcf.ru