摘要: http://poj.org/problem?id=1088 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int d[102][102],a[102][102]; 8 int dis[4][2... 阅读全文
posted @ 2014-05-06 15:16 galaxy77 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1661 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define INF 100000000 7 using namespace std; 8 9 int n,m,... 阅读全文
posted @ 2014-05-06 15:14 galaxy77 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1676题意:有n个城市和m条路,一辆车要从s城市到e城市,而且这辆车能够乘的油的容量为cap,每走1单位距离就耗费1单位油。每个城市都有加油站,但是每个加油站的价格不同。让你判断这辆车能否到达城市e,如果能够达到,... 阅读全文
posted @ 2014-05-06 15:10 galaxy77 阅读(220) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1023 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace ... 阅读全文
posted @ 2014-05-06 15:04 galaxy77 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1023 1 //package dhsjdhjkh; 2 3 import java.util.*; 4 import java.io.*; 5 import java.math.BigInteger; 6 7... 阅读全文
posted @ 2014-05-06 15:02 galaxy77 阅读(187) 评论(0) 推荐(0) 编辑