#C1344. Super Symmetry Checker
Super Symmetry Checker
Super Symmetry Checker
You are given an \( N\times N \) grid of characters. A grid is defined as having Super Symmetry if it is symmetric both horizontally and vertically. Formally, the grid satisfies:
\( \text{grid}[i] = \text{grid}[N-1-i] \) for all \( 0 \leq i < N \) (horizontal symmetry), and each row is a palindrome, i.e., \( \text{grid}[i][j] = \text{grid}[i][N-1-j] \) for all valid indices (vertical symmetry).
Your task is to determine whether the given grid has Super Symmetry or not. Output "Super Symmetry" if it does; otherwise, output "Not Super Symmetry".
inputFormat
The input is read from standard input and consists of:
- An integer \( N \) denoting the size of the grid.
- Followed by \( N \) lines, each containing a string of length \( N \) representing a row of the grid.
outputFormat
Output a single line to standard output: either "Super Symmetry" if the grid meets the symmetry conditions, or "Not Super Symmetry" otherwise.
## sample3
aba
bab
aba
Super Symmetry