About naming: in specification and code, I will use the z<name>_v<unstable-version>
unstable naming convention, while I will just use <name>
in explanations.
First, our protocol:
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="rainbow">
<copyright>
</copyright>
<interface name="zex_rainbow_v1" version="1">
This file contains 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. |