上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 1.首先解释一下大根堆小根堆的表示方法: priority_queue<int> a; //等同于 priority_queue<int, vector<int>, less<int> > a; 当然也可以定义小根堆: priority_queue<int, vector<int>, greater 阅读全文
posted @ 2022-01-24 15:55 bonel 阅读(72) 评论(0) 推荐(0)
摘要: C NEUQ 思路:就是不要忽略那种NEUQNE这种情况,要记得是四个一组四个一组 代码: #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<cmath> using namespac 阅读全文
posted @ 2022-01-20 15:42 bonel 阅读(96) 评论(0) 推荐(0)
摘要: I Neiborhood Search 题意:签到题 思路:主要是学习stringstream,记得加头文件sstream 注:当时以为这个题会卡A的范围,就开始找大数,因为最开始就是类似这样写的,没有用stringstream,只是普通的读入,后来才发现就是多空格的问题,但是比赛的时候一直以为是卡 阅读全文
posted @ 2021-09-22 20:19 bonel 阅读(137) 评论(0) 推荐(0)
摘要: GitHub - amazon-archives/certlint: X.509 certificate lint bin 修复没有的UTF-8字符串的匹配问题 data 更新数据文件 ext 再生源 lib 在名称比较路程上添加注释 spec Gemize .gitignore Gemize .r 阅读全文
posted @ 2021-09-05 19:23 bonel 阅读(138) 评论(0) 推荐(0)
摘要: 筛质数 1.196. 质数距离 - AcWing题库 思路:素数筛+离散化 1)看题目就知道要用到素数筛 2)其中有一个结论:1-r之间的素数不超过sqrt(r) 3)l~r的区间数字太大,但是r-l并不是很大,就转换成0~l-r 代码: #include<iostream> #include<al 阅读全文
posted @ 2021-09-01 21:20 bonel 阅读(364) 评论(0) 推荐(0)
摘要: 1.3806. 最小化字符串 - AcWing题库 #include<iostream> #include<algorithm> #include<cstdio> #include<cmath> #include<cstring> using namespace std; const int max 阅读全文
posted @ 2021-08-20 11:32 bonel 阅读(17) 评论(0) 推荐(0)
摘要: 1.3803. 数组去重 - AcWing题库 #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<cmath> using namespace std; const int maxx= 阅读全文
posted @ 2021-08-15 16:13 bonel 阅读(17) 评论(0) 推荐(0)
摘要: 1.D-亲密数_牛客2021年七夕节比赛 (nowcoder.com) #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<cmath> #include<vector> using n 阅读全文
posted @ 2021-08-15 10:35 bonel 阅读(47) 评论(0) 推荐(0)
摘要: 1.3802. 消灭数组 - AcWing题库 #include<iostream> #include<algorithm> #include<cmath> #include<cstdio> #include<cstring> using namespace std; #define int lon 阅读全文
posted @ 2021-08-13 19:46 bonel 阅读(26) 评论(0) 推荐(0)
摘要: 1.278. 数字组合 - AcWing题库 #include<iostream> #include<algorithm> #include <cmath> #include<cstdio> #include<cstring> using namespace std; int main(){ int 阅读全文
posted @ 2021-08-12 17:29 bonel 阅读(42) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页