上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: 【Numpy】 N维数组:Ndarray对象 构造 numpy.array(object, dtype = None, copy = True, order = None, subok = False, ndmin = 0) 数据类型对象 dtype numpy.dtype(object, alig 阅读全文
posted @ 2025-04-13 21:08 White_ink 阅读(4) 评论(0) 推荐(0)
摘要: 【0-1BFS】双端队列BFS 适用范围 可转换为边权值的最短路问题 边权值为有/没有 eg 在走迷宫问题中,你可以花 1 个金币走 5 步,也可以不花金币走 1 步 思路 把没有权值的边扩展到的点放到队首,有权值的边扩展到的点放到队尾 ->可保证像普通 BFS 一样整个队列队首到队尾权值单调不下降 阅读全文
posted @ 2025-04-11 13:38 White_ink 阅读(36) 评论(0) 推荐(0)
摘要: 【搜索模拟】 搜索+大模拟 DFS模拟 像素放置 https://www.lanqiao.cn/problems/3508/learning/ 注意搜索中的遍历方式 注意特别处理 x=1 和 y=1 /* 【结论】 当(x,y)被遍历到后,(x-1,y-1)已经确定->需要check 如果是最后一列 阅读全文
posted @ 2025-04-10 21:25 White_ink 阅读(10) 评论(0) 推荐(0)
摘要: 【打表题】 题目都很简单 只需要打一个表就能看出来!!! 一定要想到小范围数打表找规律 召唤数学精灵 https://www.lanqiao.cn/problems/19700/learning/?page=1&first_category_id=1&name=召唤数学精灵 枚举1-1000内的数有 阅读全文
posted @ 2025-04-08 13:28 White_ink 阅读(9) 评论(0) 推荐(0)
摘要: 【搜索专题】 买瓜 https://www.lanqiao.cn/problems/3505/learning/ 注意本题的dp和剪枝思想! /*注意本题剪枝的后缀和思想*/ #include<iostream> #include<cstdio> #include<algorithm> using 阅读全文
posted @ 2025-04-08 11:59 White_ink 阅读(5) 评论(0) 推荐(0)
摘要: 【高精度运算】 板子很重要! 平方差 https://www.lanqiao.cn/problems/3213/learning/ 要注意很多细节问题:特别是比大小! #include<iostream> #include<cstdio> #include<cstring> #include<str 阅读全文
posted @ 2025-04-08 11:25 White_ink 阅读(8) 评论(0) 推荐(0)
摘要: 【利用数据结构进行贪心】 用某数据结构进行维护 堆/单调栈/单调队列/... 灵梦的字符串问题【堆】 https://ac.nowcoder.com/acm/contest/106509/C 注意一个小细节: 优先选择ans+=的形式 #include<bits/stdc++.h> using na 阅读全文
posted @ 2025-04-05 18:05 White_ink 阅读(6) 评论(0) 推荐(0)
摘要: yaml配置文件 rm_bringup/config/xxx.yaml 通过参数通信的方式进行调参, 直接在yaml文件里调各参数 ->可以不用去源代码里改了(好耶 demo解析 CMakeList.txt注册节点 # 找库 find_package(ament_cmake REQUIRED) fi 阅读全文
posted @ 2025-04-01 21:13 White_ink 阅读(55) 评论(0) 推荐(0)
摘要: 【文字游戏题】 注意看题 题干可能会和你理解的“常理”不一样 Switch Seats https://atcoder.jp/contests/abc399/tasks/abc399_d /* 【文字游戏】 题目意思: 数一数有多少对夫妇一开始没有挨着坐,两对夫妇最后可以通过在那四个人之间交换座位而 阅读全文
posted @ 2025-04-01 14:56 White_ink 阅读(13) 评论(0) 推荐(0)
摘要: 【minmax()】 包含在#include<algorithm>库内 以pair的形式返回传入的最小和最大值 #include<iostream> #include<algorithm> using namespace std; int main() { int a = -10; int b = 阅读全文
posted @ 2025-04-01 14:27 White_ink 阅读(14) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页