Given a Square Matrix of size M x M. Write a Program to print the matrix when it is Rotated Anticlockwise N Times First line of the test case consists of 2 Integers M&N. M represents the size of the square matrix, while
Input:
Second line of every test case consists of MM space separated integers
Output:
Single line output, print the M'M spaced integer rotated N times
Answers
Answered by
0
Where are the sample test cases?
Answered by
0
Answer:
written below
Explanation:
input
1st line of the test case consists of 2 integer M and N
M represent the square of the matrix , while N represent the number be left rotated
2nd line of every test consists of M*M space separated integer .
output
single line output print M*M spaced integer rotated N times
Example 1
input
2. 1
1 2 3 4
output
2 4 1 3
Explanation
1 2
3 4
rotated 1 time by 90°
2 4
1 3
# SPJ3
Similar questions
Math,
24 days ago
Math,
24 days ago
Political Science,
24 days ago
Social Sciences,
1 month ago
Sociology,
1 month ago
English,
8 months ago
Science,
8 months ago