随笔分类 -  笔记,作业,代码,记录

摘要:目录二叉树P1305 新二叉树B3642 二叉树的遍历P4913 【深基16.例3】二叉树深度P3884 [JLOI2009] 二叉树问题P8681 [蓝桥杯 2019 省 AB] 完全二叉树的权值搜索P1451 求细胞数量P1596 [USACO10OCT] Lake Counting SP160 阅读全文
posted @ 2024-08-14 12:06 HelloHeBin 阅读(62) 评论(0) 推荐(0)
摘要:目录预习笔记链表、栈、队列B3631 单向链表P1981 [NOIP2013 普及组] 表达式求值P1449 后缀表达式P5788 【模板】单调栈P1886 滑动窗口 /【模板】单调队列P1901 发射站P1540 [NOIP2010 提高组] 机器翻译优先队列、堆P2085 最小函数值P1090 阅读全文
posted @ 2024-08-13 08:05 HelloHeBin 阅读(176) 评论(0) 推荐(0)
摘要:目录摸底赛题P9955 [USACO20DEC] Do You Know Your ABCs? BP5436 【XR-2】缘分P1182 数列分段 Section IIP1032 [NOIP2002 提高组] 字串变换P1020 [NOIP1999 提高组] 导弹拦截P1077 [NOIP2012 阅读全文
posted @ 2024-08-12 08:34 HelloHeBin 阅读(96) 评论(0) 推荐(0)
摘要:目录P3207 Lake CountingP896 仙岛求药P429 【基础】走迷宫P3206 Dungeon MasterP2465 迷宫问题P3208 The CastleP952 【入门】算24点 P3207 Lake Counting 有一块N×M的土地,雨后积起了水,有水标记为‘W’,干燥 阅读全文
posted @ 2024-03-31 13:37 HelloHeBin 阅读(70) 评论(0) 推荐(0)
摘要:目录八皇后八数码红与黑细胞最少步数三维迷宫 八皇后 在国际象棋棋盘上放置八个皇后,要求每两个皇后之间不能直接吃掉对方 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=110; int n=8, data[N][10], 阅读全文
posted @ 2024-03-24 15:04 HelloHeBin 阅读(64) 评论(0) 推荐(0)
摘要:目录A stong9070奇遇记之合并序列B 最后一块石头的重量C 【基础】探测池塘D 新二叉树E 买雪糕F stong9070奇遇记之叫号 A stong9070奇遇记之合并序列 求两个递增序列合并成一个新的的递增序列后,原来的每个元素处在新序列的第几个位置。 数据范围:\(1≤N,M≤10^5\ 阅读全文
posted @ 2024-01-30 17:31 HelloHeBin 阅读(44) 评论(0) 推荐(0)
摘要:目录P9516 colorP7588 双重素数(2021 CoE-II A)P1449 后缀表达式B3642 二叉树的遍历 P9516 color P9516 color #include<bits/stdc++.h> using namespace std; const int N=1e4+10; 阅读全文
posted @ 2024-01-24 15:41 HelloHeBin 阅读(69) 评论(0) 推荐(0)
摘要:逛商场 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e6+10; int n,a[N],x,ans=0; int main() { cin>>n; for(int i=1; i<=n; i++) cin>>a[i] 阅读全文
posted @ 2023-11-26 11:17 HelloHeBin 阅读(207) 评论(0) 推荐(0)
摘要:课程笔记 https://www.cnblogs.com/hellohebin/p/15677386.html 上课代码 // 1-10 /* // test1 #include<bits/stdc++.h> using namespace std; const int N=1e6+10; int 阅读全文
posted @ 2023-11-10 19:35 HelloHeBin 阅读(34) 评论(0) 推荐(0)
摘要:目录P761 【入门】明明的随机数P760 [NOIP2007 提高组] 统计数字P2814 数对P495 【入门】宇宙总统1P496 【入门】宇宙总统2P2843 宇宙总统3P2810 相邻字符对P2113 全排列问题 回顾一下set,map的内容:STL P761 【入门】明明的随机数 对于一组 阅读全文
posted @ 2023-11-09 10:20 HelloHeBin 阅读(179) 评论(0) 推荐(0)
摘要:目录P1009 求概率P533 【基础】小 X 与小和尚(sum)P276 【基础】小X与缩写P402 【基础】小丽找潜在的素数P277 【基础】小 X 与位运算(bignum) P1009 求概率 求该字符在单词中出现的概率。 分析 简单字符串模拟题目,需要注意的是先统一大小写,以及保留小数。 # 阅读全文
posted @ 2023-10-20 17:44 HelloHeBin 阅读(276) 评论(0) 推荐(0)
摘要:## 数据结构 - [P1102 A-B 数对](https://www.luogu.com.cn/problem/P1102) 点击查看代码 ``` #include using namespace std; const int N=2e5+10; int n,m,c,a[N],st[N],ans 阅读全文
posted @ 2023-08-23 12:05 HelloHeBin 阅读(211) 评论(0) 推荐(0)
摘要:## 上午简单排序 - [P5143 攀爬者](https://www.luogu.com.cn/problem/P5143) 点击查看代码 ``` #include using namespace std; const int N=5e4+10; struct T{ int x,y,z; }a[N 阅读全文
posted @ 2023-08-22 11:57 HelloHeBin 阅读(97) 评论(0) 推荐(0)
摘要:## 上午 - [P1789 【Mc生存】插火把](https://www.luogu.com.cn/problem/P1789) 点击查看代码 ``` #include using namespace std; const int N=110; bool a[N][N]; int n,m,k,x, 阅读全文
posted @ 2023-08-21 14:16 HelloHeBin 阅读(155) 评论(0) 推荐(0)
摘要:## 上午递归,文件 - [B2064 斐波那契数列](https://www.luogu.com.cn/problem/B2064) - [P1255 数楼梯](https://www.luogu.com.cn/problem/P1255) 点击查看代码 ``` #include using na 阅读全文
posted @ 2023-08-18 13:51 HelloHeBin 阅读(160) 评论(0) 推荐(0)