Gym101138D————Strange Queries (莫队算法)
You are given an array with n integers
a1, a2, ..., an,
and q queries to answer.
Each query consists of four integers l1,
r1,
l2 and
r2. Your task is to count the number of pairs of indices
(
原创
2017-03-01 09:13:56 ·
322 阅读 ·
0 评论