阅读背景:

SPOJ DQUERY - D-query (莫队算法|主席树|离线树状数组)_weixin_30477797的博客

来源:互联网 

DQUERY - D-query

Given a sequence of n numbers a1, a2, ..., an and a number of d-queries. A d-query is a pair (i, j) (1 ≤ i ≤ j ≤ n). For each d-query (i, j), you have to return the number of distinct elements in the subsequence ai, ai+1, ..., aj.Given a sequence of n n




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: