会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bonel
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
12
下一页
2022年1月24日
小根堆解决问题(蓝桥杯--负载均衡--线段区间问题)
摘要: 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)
2022年1月20日
第九届“图灵杯”NEUQ-ACM程序设计竞赛个人赛
摘要: 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)
2021年9月22日
The 2021 ICPC Asia Regionals Online Contest (I)补题
摘要: I Neiborhood Search 题意:签到题 思路:主要是学习stringstream,记得加头文件sstream 注:当时以为这个题会卡A的范围,就开始找大数,因为最开始就是类似这样写的,没有用stringstream,只是普通的读入,后来才发现就是多空格的问题,但是比赛的时候一直以为是卡
阅读全文
posted @ 2021-09-22 20:19 bonel
阅读(137)
评论(0)
推荐(0)
2021年9月5日
amazon-archives-certlint的安装、配置与使用(Ubuntu虚拟机,github.com/amazon-archives/certlint)
摘要: 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)
2021年9月1日
AcWing算法提高课数学部分(持续更新中)
摘要: 筛质数 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)
2021年8月20日
2021.08.19(AcWing每日一题
摘要: 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)
2021年8月15日
2021.08.15(AcWing第十二场周赛+第十一场周赛
摘要: 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)
2021.08.14(牛客七夕比赛)
摘要: 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)
2021年8月13日
2021.08.13(AcWing每日一题)
摘要: 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)
2021年8月12日
2021.08.12(背包模型+Codeforces Round #737 (Div. 2))
摘要: 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
下一页
公告