STL-排序
你迎哥哥
这个作者很懒,什么都没留下…
展开
-
HDU 1106 排序
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1106 排序 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 36449 Accepted Submission(s): 10原创 2014-12-28 22:37:34 · 546 阅读 · 0 评论 -
快速排序
快速排序的思想就是以某个元素为基准,把大的放在一边,小的放在一边,则这个元素的位置就能确定了。 然后把小的那一块和大的那一块分别用同样的方法处理,类二分的递归。故复杂度o(n*log(n)) 下面是实现代码 #include int a[10005]; void quickSort(int a[],int l,int r) { int i=l,j=r,temp=a[l]; i原创 2015-01-01 21:20:39 · 578 阅读 · 0 评论 -
HDU 2071 Max Num
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2071 Max Num Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 15386 Accepted Submission(s原创 2015-01-02 21:35:12 · 603 阅读 · 0 评论 -
HDU 1225 Football Score
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1225 Football Score Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2981 Accepted Submis原创 2015-01-02 20:37:03 · 1310 阅读 · 0 评论 -
HDU 2020 绝对值排序
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2020 绝对值排序 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 46776原创 2015-01-02 20:34:56 · 510 阅读 · 0 评论 -
HDU 1785 You Are All Excellent
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1785 You Are All Excellent Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3245 Accepted原创 2015-01-02 20:50:24 · 549 阅读 · 0 评论 -
HDU 1862 EXCEL排序
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1862 EXCEL排序 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 13709 Accepted Submission(原创 2015-01-02 20:32:58 · 387 阅读 · 0 评论 -
HDU 1347 Grandpa is Famous
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1347 Grandpa is Famous Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 629 Accepted Subm原创 2015-01-02 20:26:44 · 476 阅读 · 0 评论 -
HDU 1157 Who's in the Middle
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1157 Who's in the Middle Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10035 Accepted原创 2015-01-02 20:23:48 · 372 阅读 · 0 评论 -
HDU 1872 稳定排序
原题连接:http://acm.hdu.edu.cn/showproblem.php?pid=1872 稳定排序 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3941 Accepted Submission(s): 1原创 2015-01-20 10:39:41 · 663 阅读 · 0 评论 -
HDU 1031 Design T-Shirt
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1031 Design T-Shirt Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6257 Accepted Submis原创 2014-12-28 22:24:22 · 430 阅读 · 0 评论 -
HDU 1236 排名
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1236 排名 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 16233 Ac原创 2014-12-28 22:40:34 · 433 阅读 · 0 评论 -
HDU 1040 As Easy As A+B
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1040 As Easy As A+B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 40345 Accepted Submi原创 2014-12-28 22:18:41 · 538 阅读 · 0 评论 -
BestCoder Round #4
HDUOJ 4931 Happy Three Friends 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=4931 给出6个数,A可以调整顺序,B先选出首尾两个数,C再从剩下的四个数当中选出3个数,问B选出的两个数之和有没有可能比C选出的3个数之和大。 因为A是帮B的,所以,B如果是聪明人的话,他肯定是从这6个数当中挑出最大的原创 2015-05-29 23:55:47 · 495 阅读 · 0 评论