Fork Copy #include using namespace std; int m; int adj[100][100]; int point[100]; int visited[100]; int egdes[10000][2]; int cost[10000]; int nedge; int minScore = -1; int stack[100]; int queue[10000]; int head, tail; int circle[100]; int ncircle; void dfs(int s){ for (int i=0;i=0){ // cout<<"stack "; // for (int i=0;i<=head;i++) cout<=2){ ncircle = head+1; for (int j=0;j>T; for (int tc=1;tc<=T;tc++){ cout<<"Case #"<>m; for (int i=0;i>tmp; cin>>point[tmp]; int tmp2; cin>>tmp2; for (int j=0;j>tmp3; adj[tmp][tmp3]=1; adj[tmp3][tmp]=1; } } // for (int i=0;i