ll@h,@w,@n,@(a,b,c,d)[n]; DijkstraHeapp; p.malloc(n+2,1); p.change(n+1,0); while(1){ ll i=p.pop(); ll v=p.val[i]; if(i==n){ wt(v); exit(0); } ll x=i