UVA11992 Fast Matrix Operations

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3143 [PDF](https://uva.onlinejudge.org/external/119/p11992.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11992/9b4b07db5bbb2af0ec8d2e58971ff9ef667aba18.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11992/c66d9d68dcf16d53358935e75ad9c88d099a7046.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11992/97cd09c03cc7c50c54aa53c6a7fd6478eaa7a1cf.png)