随笔分类 -  排序

摘要:http://acm.hdu.edu.cn/showproblem.php?pid=4911/*裸题有重复的不能用树状数组!!!!sort的时候会出错*//************************************************* Author :Powatr*... 阅读全文
posted @ 2015-08-19 16:41 Painting、时光 阅读(130) 评论(0) 推荐(0)
摘要:Watto, the owner of a spare parts store, has recently got an order for the mechanism that can process strings in a certain way. Initially the memory o... 阅读全文
posted @ 2015-08-05 19:32 Painting、时光 阅读(587) 评论(0) 推荐(0)
摘要:You are given the ages (in years) of all people of a country with at least 1 year of age. You know that no individual in that country lives for 100 or... 阅读全文
posted @ 2015-03-26 20:18 Painting、时光 阅读(143) 评论(0) 推荐(0)
摘要:DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping ... 阅读全文
posted @ 2015-03-26 18:15 Painting、时光 阅读(153) 评论(0) 推荐(0)
摘要:Description给你n个整数,请按从大到小的顺序输出其中前m大的数。Input每组测试数据有两行,第一行有两个数n,m(0#includeusing namespace std;const int MAX = 1000015;const int N = 510000;int w[MAX],a[... 阅读全文
posted @ 2015-03-26 18:02 Painting、时光 阅读(193) 评论(0) 推荐(0)