上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 45 下一页
摘要: 视频链接:242 kd 树 插入重构_哔哩哔哩_bilibili Luogu P1429 平面最近点对(加强版) // 插入重构建树 1.7s #include <iostream> #include <cstring> #include <algorithm> #include <cmath> u 阅读全文
posted @ 2023-07-26 16:19 董晓 阅读(371) 评论(0) 推荐(1)
摘要: 视频链接:241 kd 树 交替建树_哔哩哔哩_bilibili Luogu P1429 平面最近点对(加强版) // 交替建树 970ms #include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #def 阅读全文
posted @ 2023-07-26 15:00 董晓 阅读(593) 评论(0) 推荐(1)
摘要: 视频链接:238 左偏树 数字序列_哔哩哔哩_bilibili Luogu P4331 [BalticOI 2004] Sequence 数字序列 Luogu P4331 [BalticOI 2004] Sequence 数字序列 #include <iostream> #include <cstr 阅读全文
posted @ 2023-07-21 09:50 董晓 阅读(226) 评论(0) 推荐(0)
摘要: A17 排序 中位数 距离和的最小值_哔哩哔哩_bilibili P10452 货仓选址 - 洛谷 // 贪心+排序 O(nlogn) #include<bits/stdc++.h> using namespace std; const int N=100010; int n,a[N]; int m 阅读全文
posted @ 2023-07-21 09:46 董晓 阅读(690) 评论(0) 推荐(3)
摘要: 视频链接:237 左偏树 派遣_哔哩哔哩_bilibili Luogu P1552 [APIO2012] 派遣 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N=1 阅读全文
posted @ 2023-07-15 12:10 董晓 阅读(272) 评论(0) 推荐(0)
摘要: 视频链接:236 左偏树 可并堆【模板】_哔哩哔哩_bilibili Luogu P3377 【模板】左偏树(可并堆) #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int 阅读全文
posted @ 2023-07-07 22:22 董晓 阅读(488) 评论(0) 推荐(0)
摘要: A16 对顶堆 第k大的数_哔哩哔哩_bilibili P7072 [CSP-J2020] 直播获奖 - 洛谷 // 对顶堆 O(nlogn) #include<bits/stdc++.h> using namespace std; int n,w; priority_queue<int> a; / 阅读全文
posted @ 2023-07-07 22:12 董晓 阅读(1255) 评论(3) 推荐(5)
摘要: 视频链接:A15 堆 堆排序_哔哩哔哩_bilibili Luogu P3378 【模板】堆 #include <iostream> #include <cstring> #include <algorithm> using namespace std; int a[1000010],cnt; vo 阅读全文
posted @ 2023-07-07 22:04 董晓 阅读(944) 评论(0) 推荐(1)
摘要: 视频链接:A14 归并排序 逆序对_哔哩哔哩_bilibili Luogu P1177 【模板】排序 #include <iostream> using namespace std; const int N = 100010; int n,a[N],b[N]; //b为辅助数组 void msort 阅读全文
posted @ 2023-07-07 21:44 董晓 阅读(1044) 评论(0) 推荐(5)
摘要: 视频链接:A13 快速排序 第k小的数_哔哩哔哩_bilibili Luogu P1177 【模板】排序 #include <iostream> using namespace std; int n,a[100005]; void quicksort(int l, int r){ if(l==r) 阅读全文
posted @ 2023-07-07 21:34 董晓 阅读(991) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 45 下一页