文章浏览阅读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......
文章浏览阅读300次。The 2019 Asia Nanchang First Round Online Programming Contest (H The Nth Item)题意给定一个递归式,给定一个数字n和q次操作,每次操作将上一次的答案ans和上一次的n,(ans*ans)^n作为这次的n,并将每次的ans异或起来作为最终答......