摘要: [Cqoi2011]动态逆序对 Description 对于序列A,它的逆序对数定义为满足i<j,且Ai>Aj的数对(i,j)的个数。给1到n的一个排列,按照某种顺序依次删除m个元素,你的任务是在每次删除一个元素之前统计整个序列的逆序对数。 对于序列A,它的逆序对数定义为满足i<j,且Ai>Aj的数 阅读全文
posted @ 2017-12-27 09:15 Kaiser- 阅读(240) 评论(0) 推荐(0) 编辑
摘要: The God of sheep decides to pixelate some pictures (i.e., change them into pictures with mosaic). Here's how he is gonna make it: for each picture, he 阅读全文
posted @ 2017-12-27 08:30 Kaiser- 阅读(201) 评论(0) 推荐(0) 编辑