UVA550 Multiplying by Rotation

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=491 [PDF](https://uva.onlinejudge.org/external/5/p550.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA550/2e62cd50589227273d453824b17555fbbf69f9b8.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA550/61e723b60bd655aa2c5bdae7e67edbd0df51dbc6.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA550/0625de5ea44ca496a46a603174d880309d30d408.png)