摘要:        
分析 环境配置 1.导入依赖 <!-- 统一管理jar包版本 --> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>11</maven.co    阅读全文
posted @ 2022-05-10 23:00
czyaaa
阅读(34)
评论(0)
推荐(0)
        
            
        
        
摘要:        
AcWing803. 区间合并 题解 #include <iostream> #include <algorithm> #include <vector> using namespace std; typedef pair<int,int> PII; vector<PII> segs; void m    阅读全文
posted @ 2022-05-10 10:55
czyaaa
阅读(35)
评论(0)
推荐(0)
        
            
        
        
摘要:        
AcWing802.区间和 题解 本题要是一个很长的数轴,已经超过了数组的长度1e6,故我们需要使用离散化压缩空间 #include <iostream> #include <cstdio> #include <vector> #include <algorithm> using namespace    阅读全文
posted @ 2022-05-10 09:50
czyaaa
阅读(48)
评论(0)
推荐(0)
        
            
        
        
摘要:        
离散化应用 离散化模板 vector<int> alls; sort(alls.begin(), alls.end()); alls.erase(unique(alls.begin(),alls.end()), alls.end()); //获取离散化后的映射 int find(int x) { i    阅读全文
posted @ 2022-05-10 09:46
czyaaa
阅读(36)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号