Rosetta Problems

連鎖行列積

NN 個の行列の大きさが与えられ、積 M1M2⋯MNM_1 M_2 \cdots M_N の計算に必要なスカラー乗算の回数の最小値を求める。

関連リンク