EOJ 1028 路由器
摘要:
http://acm.cs.ecnu.edu.cn/problem.php?problemid=1028这题以字符串作为节点,有一个字符串映射到节点序号1……N的问题,可以用map来解决这题数据不大,所以可以直接用floyd算法 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int INF = 9999999;10 int m[102][102];11 mapmy;12 int n;13 14 void floyd()15 {16... 阅读全文
posted @ 2013-06-12 22:21 KimKyeYu 阅读(252) 评论(0) 推荐(0)
浙公网安备 33010602011771号