Poj 1135 Domino Effect(Dijkstra)(二)

2014-11-24 10:47:56 · 作者: · 浏览: 2
}
}

printf("System #%d\n",tt++);
if(max1 >= max2)//选出符合的情况
printf("The last domino falls after %.1f seconds, at key domino %d.\n",max1,index);
else
printf("The last domino falls after %.1f seconds, between key dominoes %d and %d.\n",max2,index1,index2);
printf("\n");
}
return 0;
}