Count the number of edges
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The directed graph is given with an adjacency matrix. Find the number of edges in a graph.
Input
The first line contains the number of vertices in the graph . Then given lines with numbers or — the adjacency matrix of the graph.
Output
Print the number of edges in a graph.
Examples
Input #1
Answer #1
Submissions 6K
Acceptance rate 75%