BlueBook
Determine if a table of numbers containing
An
Input Specification
The first line of input contains an integer
Each test case starts with an integer
Output Specification
For each test case, print yes
if it is a magic square, and no
if it
is not.
Sample Input
Copy
3
2
1
2
2
1
1
5
2
1
2
3
4
Sample Output
Copy
yes
yes
no
Comments