From list of edges to adjacency matrix
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The simple not directed graph is given by the list of its edges. Print its representation as an adjacency matrix.
Input
The first line contains two integers n (1 ≤ n ≤ 100) - number of vertices and m (1 ≤ m ≤ n · (n - 1) / 2) - number of edges. Next m lines contain m pairs of integers, each pair gives one edge of the graph.
Output
Print the adjacency matrix of the graph.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 57%