阅读背景:

牛客网暑期ACM多校训练营(第一场)J. Different Integers(树状数组,离线处理)_riba2534的博客

来源:互联网 

题目描述

Given a sequence of integers a1, a2, …, an and q pairs of integers (l1, r1), (l2, r2), …, (lq, rq), find count(l1, r1), count(l2, r2), …, count(lq, rq) where count(i, j) is the number of different integers among a1, a2, …, ai, aj, aj + 1, …, an.Given a sequence of integers




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

分享到: