题目
A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with several vertex sets, you are supposed to tell if each of them is a vertex cover or not.
Input Specification:
Each input file contains one test case. For each case, the first line gives two positive integers N N N and M M M (both no more than 1 0 4 ) 10^4) 104), being the total numbers of vertices and the edges, respectively. Then M M M lines follow, each describes an edge by giving the indices (from 0 to N − 1 N-1 N−1) of the two ends of the edge.
After the graph, a positive integer K ( ≤ 100 ) K(\le 100) K(≤