上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 被虐了一下午补的题 题目: http://hdu.hustoj.com/showproblem.php?pid=5137 How Many Maos Does the Guanxi Worth Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 阅读全文
posted @ 2017-11-26 19:48 姿态H 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 题目: 3 10 1 3 5 在3个数组1 3 5中放回的选取4个数字和为10 思路:暴力可以写,但是复杂度为o(n^4) 二分快排 复杂度为o(n^2*logn) 代码: 阅读全文
posted @ 2017-11-23 17:25 姿态H 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 求迷宫最短路 阅读全文
posted @ 2017-11-22 21:08 姿态H 阅读(180) 评论(0) 推荐(0) 编辑
摘要: POJ NO.2386:https://vjudge.net/problem/POJ-2386Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by 阅读全文
posted @ 2017-11-21 21:38 姿态H 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 图论很重要 题目:https://vjudge.net/contest/198762#problem/A A - 昂贵的聘礼 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降 阅读全文
posted @ 2017-11-20 21:47 姿态H 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 这是这段时间最后一次更新DP了,,这东西太难学了,换图论模板去,,以后再学这东西 就贴题目了:http://acm.hdu.edu.cn/showproblem.php?pid=1024 解:https://www.cnblogs.com/dongsheng/archive/2013/05/28/3 阅读全文
posted @ 2017-11-20 19:36 姿态H 阅读(175) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-17 18:07 姿态H 阅读(3) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-15 20:18 姿态H 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 直接上题目: Alice like strings, especially long strings. For each string, she has a special evaluation system to judge how elegant the string is. She defin 阅读全文
posted @ 2017-11-15 20:13 姿态H 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 由于太懒而且文采不好,自己写的东西总会少了这个那个细节,所以还是从网上找一些大牛的东西然后总结了一下 以下是抄袭: 1.关于set C++ STL 之所以得到广泛的赞誉,也被很多人使用,不只是提供了像vector, string, list等方便的容器,更重要的是STL封装了许多复杂的数据结构算法和 阅读全文
posted @ 2017-11-07 19:31 姿态H 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页