/* 6 0 1 4 10000 10000 10000 1 0 2 7 5 10000 4 2 0 10000 1 10000 10000 7 10000 0 3 2 10000 5 1 3 0 6 10000 10000 10000 2 6 0 */ #include #include #include #include #include #include using namespace std; int map[105][105]; int n; int main() { scanf("%d",&n); for(int i=0;i map[i][k] + map[k][j]) { map[i][j] = map[i][k] + map[k][j]; } } } } } for(int i=0;i