上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1063 题目描述: 代码实现: 阅读全文
posted @ 2018-12-12 20:10 里昂静 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1042 题目描述: 代码实现: 阅读全文
posted @ 2018-12-12 20:02 里昂静 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/zhjchengfeng5/article/details/7786595 阅读全文
posted @ 2018-12-05 19:34 里昂静 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=1143 题目描述: 代码实现: 阅读全文
posted @ 2018-12-05 15:05 里昂静 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://ac.nowcoder.com/acm/contest/301/B 题目描述: 代码实现: 阅读全文
posted @ 2018-12-05 09:20 里昂静 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://vjudge.net/problem/HDU-6124 题目描述: 题目大意就是给你一个数,判断这个数 % 其它数后共有几种结果。 这题对我来说最大的难点是我不太知道每个数 余 其他的数应该得出什么结果,后来参考了别人的博客,才弄清楚了。现在我就举一些例子来说明一下: 对于 阅读全文
posted @ 2018-12-02 10:44 里昂静 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1114 题目描述: Piggy-Bank Before ACM can do anything, a budget must be prepared and the necessary financial 阅读全文
posted @ 2018-12-01 21:38 里昂静 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/yeruby/article/details/38615045 MST(Minimum Spanning Tree,最小生成树)问题有两种通用的解法,Prim算法就是其中之一,它是从点的方面考虑构建一颗MST,大致思想是:设图G顶点集合为U,首先任 阅读全文
posted @ 2018-12-01 21:21 里昂静 阅读(1429) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1065 题目描述: floor(x) is the largest integer not greater than x , 也就是,floor(x) 返回的是小于等于x的所有整数中最大的整数,简单的说, 阅读全文
posted @ 2018-11-30 20:57 里昂静 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=1949 题目描述: 思路:用一个数组dp来存完成第i个任务时所需的最短的时间,dp[i] = max(dp[j]) +time, j是需要在它前面完成的任务的序号,time是完成当前任务所需时间。 对于任务5来说, 代码实现: 阅读全文
posted @ 2018-11-27 22:09 里昂静 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页