看懂题就不难写了~ #include<bits/stdc++.h> using namespace std; struct dat_edge { int aim,last; }edge[201]; int n,m,k,inde[101],coun[101],tmp_coun[101],pl[101],len_edge,num_key,key[300][101]; char kind[101]; void insert_edge(int x,int y) { len_edge++; edge[len_edge].aim=y; edge[len_edge].last=pl[x]; pl...