#include<iostream> #include<stdio.h> #define MAXN 105 #define inf 123456789 using namespace std; int _m[MAXN][MAXN]; int floy[MAXN][MAXN]; int pre[MAXN][MAXN]; int ans[MAXN]; int n; int num; void floyd(); int main() { //freopen("acm.acm&q…
题意:求最出小环,输出路径 #include <iostream> #include<cstdio> using namespace std; #define N 110 #define INF 0xffffff int map[N][N],n,m,dist[N][N],pre[N][N],path[N]; /* run this program using the console pauser or add your own getch, system("pause&q…
Sightseeing trip Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5590 Accepted: 2151 Special Judge Description There is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many other attra…