
逆序数
西瓜君wtml
这个作者很懒,什么都没留下…
展开
-
hdu 4911 归并排序求逆序数
Problem Description bobo has a sequence a1,a2,…,an. He is allowed to swap two adjacent numbers for no more than k times.Find the minimum number of inversions after his swaps.Note: The number of invers原创 2017-08-24 14:44:49 · 331 阅读 · 0 评论 -
hdu 1394 最小逆序数
Problem Description The inversion number of a given number sequence a1, a2, …, an is the number of pairs (ai, aj) that satisfy i < j and ai > aj.For a given sequence of numbers a1, a2, …, an, if we mo原创 2017-08-24 17:10:29 · 307 阅读 · 0 评论