Maximum Clique
Medium
Execution time limit is 2 seconds
Runtime memory usage limit is 128 megabytes
Given a graph , a clique is a sub-graph , so that for all vertex pairs , in , there exists an edge (, ) in . Maximum clique is the clique that has maximum number of vertex.
Input
Consists of multiple tests. The first line of each test case contains the number of vertices . The following lines has numbers or each, indicating whether an edge exists between (line number) and (column number). The last line contains = and must not be processed.
Output
For each test case print on a separate line the number of vertices in maximum clique.
Examples
Input #1
Answer #1
Submissions 663
Acceptance rate 9%