摘要:        
整数二分模板: bool check(int x) {/* ... */} // 检查x是否满足某种性质 // 区间[l, r]被划分成[l, mid]和[mid + 1, r]时使用: int bsearch_1(int l, int r) { while (l < r) { int mid =     阅读全文
        
            posted @ 2021-07-13 17:51
infocodez
阅读(46)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
788. 逆序对的数量 - AcWing题库 #include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<=b;i++) using namespace std; typedef long long ll; const int N=1e5+10;    阅读全文
        
            posted @ 2021-07-13 00:33
infocodez
阅读(39)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号