#include #include #include #include using namespace std; struct edge{ int to, from, cost; }; bool comp(const edge& e1, const edge& e2){ if(e1.cost < e2.cost){ return true; }else{ return false; } } int main(void){ int n, m, k, d[1001]; vector e; scanf("%d %d %d",&n,&m,&k); for(int i=0; i to, tmp; set s; for(int j=0; j::iterator ite; for(ite = s.begin(); ite!= s.end(); ite++){ printf("%d",*ite); if(ite != s.end()){ printf(" "); } } printf("\n"); return 0; }