- 博客(4)
- 问答 (3)
- 收藏
- 关注
转载 dijkstra算法实现
#include #include using namespace std;const int maxnum = 100;const int maxint = 999999;// 各数组都从下标1开始int dist[maxnum]; // 表示当前点到源点的最短路径长度int prev[maxnum]; // 记录当前点的前一个结点int c[maxnum][
2016-03-15 20:08:09 465
原创 hdu 5635 LCP Array
http://acm.hdu.edu.cn/showproblem.php?pid=5635题意:给你一串数字 如54 3 2 1 04就表示 前4个字母和从第二个开始的4个字母是一样的 也就是说 这5个字母都是一样的再验证一下 3 从第二个开始的后3个字母 和从第三个开始的后3个字母 都是一样的 成立首先 只存在连续减小和0的情况 否则都是0#in
2016-03-05 22:14:18 793
原创 hdu 1073 Online Judge
http://acm.hdu.edu.cn/showproblem.php?pid=1073注意清空#include #include #include using namespace std;int main(){ int cas; char ans1[5005],ans2[5005],ans3[5005],ans4[5005],temp[5005];
2016-03-04 13:34:19 761
原创 hd 1070 Milk
http://acm.hdu.edu.cn/showproblem.php?pid=1070#include #include #include using namespace std;struct milk{ char name[1000]; double money,ml; double val; int day;}m[105];
2016-03-04 11:39:41 662
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人