//求n到其他点的损率的乘积最大
#include<cstdio>
#include<iostream>
#include<cstring>
#include<queue>
using namespace std;
const int mn=105,mm=40005;
struct Edge{
int to,next;
double w;
}edges[mm];
int n,m,head[mn],tot,inq[mn];
double dis[mn],w[mn];
void add(int u,int v,double w)
{
edges[tot].to=v;
edges[tot].w=w;
edges[tot].next=head[u];
head[u]=tot++;
edges[tot].to=u;
edges[tot].w=w;
edges[tot].next=head[v];
head[v]=tot++;
}
void spfa()
{
memset(dis,0,s
zoj1655(最短路)
最新推荐文章于 2019-03-14 10:58:00 发布