#P372. 练64.1 图像旋转
练64.1 图像旋转
Description
Input a black and white image with rows and columns, and output it after rotating degrees clockwise.
Input Format
First line contains two integers and , representing the number of rows and columns of pixels in the image. , .
Next lines, each containing integers, represent the grayscale value of each pixel in the image. Adjacent integers are separated by a single space, and each element is between and .
Output Format
Output lines, each containing integers, representing the image after rotating degrees clockwise. Adjacent integers are separated by a single space.
Sample
3 3
1 2 3
4 5 6
7 8 97 4 1
8 5 2
9 6 3