浅谈莫队算法

首先来看一道例题: Description 有n个数字,以及m个查询。每次查询的格式是L,r,求L~r(左右包含)这个区间内有多少个不同的数? 1 include define lowbit(x) ((x)&( (x))) using namespace std; int n,m; int b[50
posted @ 2020-01-16 11:02  _tham  阅读(271)  评论(0编辑  收藏  举报