You are given an
A cross of size
A cross is called "symmetric" if it does not change after being rotated by
Input Specification
The first line contains two integers
- In
of the test cases, . - In
of the test cases, .
Output Specification
The output contains a single line with three integers: the size of the largest symmetric cross in
Sample Input 1
Copy
5 5
0 0 1 0 0
0 0 0 0 0
1 0 1 0 1
0 0 0 0 0
0 0 1 0 0
Sample Output 1
Copy
2 3 3
Sample Input 2
Copy
5 5
0 0 1 0 0
0 1 0 0 1
1 0 1 0 0
0 0 1 0 1
0 0 1 0 0
Sample Output 2
Copy
1 2 2
Comments
how does my code pass in pypy but MLE in python?