π‘
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Description | |
| --- | |
| Just matrix chain multiplication. | |
| Input format | |
| --- | |
| There may be multiple test cases. | |
| Each test case consists of two lines. | |
| On the first line is an integer, $n$, the number of matrices. | |
| On the second line are $n + 1$ integers, the dimension of the matrices. |