UVA878 Rotating Tetris Pieces

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=819 [PDF](https://uva.onlinejudge.org/external/8/p878.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA878/7d0c06f2446452b5a5066edd3481a6bd706c85a8.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA878/6fce065292e55c10932c1ab070c1e1aaf7e9c78c.png)