#include<cstdio>
#include<iostream>
#define MAXN 2510
#define INF 1000000000
using namespace std;
int q[MAXN*2],pos[MAXN*2];
int n,m,s,t,dis[MAXN];
struct node {
int to;
int next;
int val;
};
node e[MAXN*5];
int head[MAXN],tot;
bool vis[MAXN];
inline void read(int&x) {
int f=1;x=0;char c=getchar();
while(c>'9'||c<'0') {
if(c==
Dijkstra+堆优化模板 (手写堆简单易懂)
最新推荐文章于 2025-09-19 14:02:42 发布

最低0.47元/天 解锁文章
1415





