Problems
Maximum Clique
Maximum Clique
Given a graph $G(V, E)$, a clique is a sub-graph $g(v, e)$, so that for all vertex pairs $v_1$, $v_2$ in $v$, there exists an edge ($v_1$, $v_2$) in $e$. Maximum clique is the clique that has maximum number of vertex.
\InputFile
Consists of multiple tests. The first line of each test case contains the number of vertices $n$$(1 < n ≤ 50)$. The following $n$ lines has $n$ numbers $0$ or $1$ each, indicating whether an edge exists between $i$ (line number) and $j$ (column number). The last line contains $n$ = $0$ and must not be processed.
\OutputFile
For each test case print on a separate line the number of vertices in maximum clique.
Input example #1
5 0 1 1 0 1 1 0 1 1 1 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 0
Output example #1
4