WOJ-Problem 1009 - The Legend of Valiant Emigration
#include#include#include#defineN105#defineINF0x7fffffff#definemcv(a,v)memset(a,v,sizeof(a))#definerep(i,n)for(inti=0;i=0;i--)usingnamespacestd;structNode{intp,s;charl[3];};intp_l,s_l,dis[N][N],dist[N]