Complete graph
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
An undirected graph is called complete, if any pair of distinct vertices is connected by at least one edge. Given a list of graph edges, check whether the graph is complete.
Input
The first line contains the number of vertices and the number of edges in the graph. Then pairs of numbers are given, representing the graph edges.
Output
Print "YES" if the graph is complete and "NO" otherwise.
Examples
Input #1
Answer #1
Submissions 10K
Acceptance rate 41%