随笔分类 - 排序
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=4911/*裸题有重复的不能用树状数组!!!!sort的时候会出错*//************************************************* Author :Powatr*...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping ...
阅读全文
摘要:Description给你n个整数,请按从大到小的顺序输出其中前m大的数。Input每组测试数据有两行,第一行有两个数n,m(0#includeusing namespace std;const int MAX = 1000015;const int N = 510000;int w[MAX],a[...
阅读全文

浙公网安备 33010602011771号