#include #include #include #include using namespace std; vector graf[100]; vector utez[100]; int razdalja[100]; int main(){ int v,e; scanf("%d%d",&v,&e); for(int i=0;i > vrsta; vrsta.push(make_pair(0,0)); while(!vrsta.empty()){ pair trenutno = vrsta.top(); vrsta.pop(); int vozl = trenutno.second; int teza = -trenutno.first; if(razdalja[vozl]!=-1)continue; razdalja[vozl]=teza; for(int i=0;i