【HDU 1599】find the mincost route 【最小环】
#include<bits/stdc++.h>
using namespace std;
#define M 1010
#define N 110
#define INF (1<<28)
int n,m;
int dp[N][N],f[N][N];
void solve(){
for(int i=1;i<=n;i++)
for(int j=1;j<=n;j++)
f[i][j]=dp[i][j]=INF;
int a,b,c,ans=INF;