9 vector<ll> ret(n,INFL); ret[start]=0;
10 priority_queue<pair<ll,
int>> pq; pq.push({0,start});
13 auto [tmp,now]=pq.top(); pq.pop(); tmp=-tmp;
14 if(ret[now]<tmp)
continue;
15 for(
auto [nxt,cost]: g[now])
if(chmin(ret[nxt],ret[now]+cost)) pq.push({-ret[nxt],nxt});