1427: 四向旋转矩阵比较

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:0

Description


Input

Output

Sample Input Copy

2
3
1 2 3
4 5 б
7 8 9
9 8 7
б 5 4
3 2 1
2
1 0
0 1
2 0
0 2

Sample Output Copy

YES
NO