文章浏览阅读103次。queryGiven a permutationppof lengthnn, you are asked to answermmqueries, each query can be represented as a pair(l ,r )(l,r), you need to find the number of pair(i ,j)(i,j)such thatl ..._计蒜客 41391...
文章浏览阅读113次。XKC's basketball teamXKC , the captain of the basketball team , is directing a train ofnnteam members. He makes all members stand in a row , and numbers them1 \cdots n1⋯nfrom left to righ..._对于每个商店,找到它右边最远位置pos,满足a_pos < a_i,输出 po......