摘要: 在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。 如2 4 3 1中,2 1,4 3,4 1,3 1是逆序,逆序数是4。给出一个整数序列,求该序列的逆序数。 Input第1行:N,N为序列的长度(n <= 阅读全文
posted @ 2017-08-09 19:49 暴力都不会的蒟蒻 阅读(275) 评论(0) 推荐(0)
摘要: Batting Practice After being all out for 58 and 78 in two matches in the most prestigious tournament in the world, the coach of a certain national cri 阅读全文
posted @ 2017-08-09 16:02 暴力都不会的蒟蒻 阅读(254) 评论(0) 推荐(0)
摘要: 152 - Expected value of the expression Time Limit:2s Memory Limit:128MByte Submissions:135Solved:65 152 - Expected value of the expression Time Limit: 阅读全文
posted @ 2017-08-09 14:32 暴力都不会的蒟蒻 阅读(507) 评论(0) 推荐(0)