摘要: Currency ExchangeTime Limit:1000MSMemory Limit:30000KTotal Submissions:21922Accepted:7910DescriptionSeveral currency exchange points are working in ou... 阅读全文
posted @ 2015-05-29 21:35 cyd2014 阅读(148) 评论(0) 推荐(0)
摘要: 给定图G(V, E)(其中V、E分别为图G的顶点集与边集),源点s,数组Distant[i]记录从源点s到顶点i的路径长度,初始化数组Distant[n]为, Distant[s]为0;以下操作循环执行至多n-1次,n为顶点数:对于每一条边e(u, v),如果Distant[u] + w(u, v)... 阅读全文
posted @ 2015-05-29 20:09 cyd2014 阅读(276) 评论(0) 推荐(0)