Multiedges#5073

Multiedges

1 sekondë
128 megabajt
Shumë e lehtë

A directed graph is given with a list of edges. Check whether it contains multiedges.

Hyrja

The first line contains the number of vertices in a graph, (1 \leq n \leq 100), and the number of edges, (1 \leq m \leq 10000). Each of the next lines contains a pair of integers — the edges of the graph.

Dalja

Print YES if the graph contains multiedges and NO otherwise.

Shembuj

Shembulli 1

Loading
Loading

Shembulli 2

Loading
Loading