摘要:
题目链接 题目思路 字典树居然还能求逆序对,震惊 就是利用字典树求逆序对的思想来解决此题 妙蛙种子 代码 #include<bits/stdc++.h> #define fi first #define se second #define debug cout<<"I AM HERE"<<endl; 阅读全文
摘要:
题目链接 题目思路 对于$l-1$找到它$m$个字母最接近的位置的最远位置 然后进行倍增即可 代码 #include<bits/stdc++.h> #define fi first #define se second #define debug cout<<"I AM HERE"<<endl; us 阅读全文