int dis[N];
bool exist[2001];
memset(exist,false, sizeof(exist));
memset(dis,0x7f, sizeof(dis));
queue<int> q;
dis[s] = 0;
q.push(s);
exist[s] = true;
int u;
while(!q.empty()){
u = q.front();
q.pop();
exist[u] = false;
for(int i = head[u];i!=0;i = edges[i].next){
int v = edges[i].to;
if(dis[v]>dis[u]+edges[i].w){
dis[v] = dis[u]+edges[i].w;
if(!exist[v]){
exist[v] = true;
q.push(v);
inQueueTimes[v]++;
}
}
}
return false;
}
科研训练
# 寒假30篇论文计划 - [] 1、SEWResnet - [] 2、Resnet - [] 3、Spikeformer - [] 4、TVConv - [] 5、