#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int inf = 99999999;
int n,m,t1,t2,t3,min;
int e[7][7],dis[7],book[7]={0};
int count=0,sum=0;
cin>>n>...
#include<iostream>
#include<cstdio>
using namespace std;
struct edge
{
int u;
int v;
int w;
};
struct edge e[10];
int n,m;
int f[7]={0},sum=0,count=0;
void quicksort(int left,int ...