摘要:
1 int SPFA(Graph &g, int s, int dist[]) 2 { 3 int inQueue[MAX]={0}; 4 int num[MAX]={0}; //记录入队次数 5 int i, j; 6 for (i = 0; i < g.n; i++)//初始化最大值 7 dis 阅读全文
posted @ 2019-10-11 22:05
麦客_zeng
阅读(87)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; const int N = 1e4+5; struct node{ int val,num; node(int newval,int newnum){val=newval;num=newnum;} bool operator<(const node &a) const{ return val<a.val; } 阅读全文
posted @ 2019-10-11 21:54
麦客_zeng
阅读(101)
评论(0)
推荐(0)