上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页
摘要: 视频链接:222 扫描线 矩形周长并_哔哩哔哩_bilibili Luogu P1856 [IOI1998] [USACO5.5] 矩形周长 // 扫描线+线段树+离散化 35ms #include <iostream> #include <cstring> #include <algorithm> 阅读全文
posted @ 2023-08-27 15:59 董晓 阅读(854) 评论(0) 推荐(1)
摘要: 视频链接:A23【模板】贪心算法 P1090 [NOIP2004 提高组] 合并果子_哔哩哔哩_bilibili Luogu P1090 [NOIP2004 提高组] 合并果子 #include <iostream> #include <cstring> #include <algorithm> # 阅读全文
posted @ 2023-08-27 08:21 董晓 阅读(789) 评论(0) 推荐(0)
摘要: 视频链接:A22 堆 序列合并_哔哩哔哩_bilibili Luogu P1631 序列合并 #include <cstdio> #include <queue> using namespace std; const int N=100005; int a[N],b[N],id[N]; priori 阅读全文
posted @ 2023-08-26 18:21 董晓 阅读(610) 评论(0) 推荐(0)
摘要: 视频链接:A21 排序 区间合并_哔哩哔哩_bilibili Luogu P1496 火烧赤壁 #include<iostream> #include<cstdio> #include<algorithm> using namespace std; #define N 20005 struct li 阅读全文
posted @ 2023-08-26 10:02 董晓 阅读(604) 评论(0) 推荐(0)
摘要: 视频链接:A20 双指针 [ABC098D] Xor Sum 2_哔哩哔哩_bilibili Luogu [ABC098D] Xor Sum 2 #include <iostream> #include <cstring> #include <algorithm> using namespace s 阅读全文
posted @ 2023-08-24 21:49 董晓 阅读(616) 评论(0) 推荐(0)
摘要: 视频链接:A19 双指针 P1381 单词背诵_哔哩哔哩_bilibili Luogu P1381 单词背诵 #include<bits/stdc++.h> using namespace std; int n,m; string s[100005],s1; map<string,bool> wor 阅读全文
posted @ 2023-08-24 21:47 董晓 阅读(733) 评论(1) 推荐(2)
摘要: A18 双指针(尺取法)_哔哩哔哩_bilibili Luogu P1147 连续自然数和 #include<cstdio> int main(){ int m; scanf("%d",&m); int i=1,j=1,sum=1; while(i<=m/2){ //i<=j if(sum<m){ 阅读全文
posted @ 2023-08-24 21:29 董晓 阅读(1208) 评论(0) 推荐(0)
摘要: 视频链接:217 线段树 [SCOI2007] 降雨量_哔哩哔哩_bilibili Luogu P2471 [SCOI2007] 降雨量 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> usi 阅读全文
posted @ 2023-08-24 17:34 董晓 阅读(465) 评论(0) 推荐(2)
摘要: 视频链接:216 线段树 [TJOI2018] 数学计算_哔哩哔哩_bilibili Luogu P4588 [TJOI2018] 数学计算 #include <iostream> #include <cstring> #include <algorithm> using namespace std 阅读全文
posted @ 2023-08-20 12:04 董晓 阅读(434) 评论(0) 推荐(1)
摘要: 视频链接:215 线段树 [JSOI2008] 最大数_哔哩哔哩_bilibili Luogu P1198 [JSOI2008] 最大数 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> usi 阅读全文
posted @ 2023-08-20 10:17 董晓 阅读(549) 评论(0) 推荐(1)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页