Matrix-chain Multiplication
Source
https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/all/ALDS1_10_B
Description
Time Limit : 1 sec , Memory Limit : 131072 KBMatrix-chain Multiplication
The goal of the matrix-chain multiplication problem is to find the most efficient way to multiply given
Write a program which reads dimensions of MiMi, and finds the minimum number of scalar multiplications to compute the maxrix-chain multiplication M1M2...MnM1M2...Mn.
Input
In the first line, an integer