/* SWERC'97 - Always on the run */ /* 11/7/97 - Matthias Ruhl */ #include #define MAXPERIOD 30 #define MAXCITIES 10 FILE *inp; struct { int period; int cost[MAXPERIOD]; } conn[MAXCITIES][MAXCITIES]; int process() { int i,j,n,k,l,c,mincost[MAXCITIES],newcost[MAXCITIES]; static int caseno = 1; fscanf(inp,"%d %d",&n,&k); if(n == 0 && k == 0) return 0; /* read in connections */ for(i=0;i