[The Preliminary Contest for ICPC Asia Xuzhou 2019 - 徐州网络赛I] query
queryGivenapermutationppoflengthnn,youareaskedtoanswermmqueries,eachquerycanberepresentedasapair(l,r)(l,r),youneedtofindthenumberofpair(i,j)(i,j)suchthatl\lei#definelllonglong#defineINF0x3f3f3f3fusing