Degrees of vertices#5082

Degrees of vertices

1 sekunt
64 megabaýt
Örän ýeňil

You are given a simple undirected unweighted graph. Your task is to determine the degree of each vertex.

Giriş

The first line contains the integer (1 \leq N \leq 1000), representing the number of vertices. The following lines provide the adjacency matrix of the graph.

Çykyş

Output integers, each representing the degree of a vertex.

Mysallar

1-nji mysal

Loading
Loading