Rosetta Problems

Matrix Chain Multiplication

https://onlinejudge.u-aizu.ac.jp/problems/ALDS1_10_B