摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1548 1 //hdu 1548 2 #include 3 #include 4 #define INF 999999 5 int map[202][202],vis[202],dist[202],pre[202]; 6 int n,a,b; 7 void dijkstra(int s) 8 { 9 for(int i=1;i0)51 map[i][i-k[i]]=1;52 }53 dijkstra(a);54 if(di... 阅读全文
posted @ 2014-03-16 16:03 清风旋叶 阅读(104) 评论(0) 推荐(0) 编辑