会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ke_scholar
管理
上一页
1
···
14
15
16
17
18
19
20
21
22
···
29
下一页
2024年3月7日
二维坐标离散化模板
摘要: struct Two_D_Discrete { int n, tot1 = 1, tot2 = 1; vector<vector<int>> mp; vector<int> x, y, nx, ny; vector<pair<i64, i64>> a; vector<PII> New; Two_D_
阅读全文
posted @ 2024-03-07 21:44 Ke_scholar
阅读(70)
评论(0)
推荐(0)
2024年2月25日
周报
摘要: 周报2 写在前言 这周大概调整了下情绪,参加了三场牛客,打得有好有坏吧,有时总是心不在焉,不过也不想解释太多,归根结底是自己能力不够,赛后也进行了补题,大概每场补到了8题左右,以下是补题后写的题解 2024牛客寒假算法基础集训营4 A-柠檬可乐_2024牛客寒假算法基础集训营4 (nowcoder.
阅读全文
posted @ 2024-02-25 20:25 Ke_scholar
阅读(52)
评论(0)
推荐(0)
2024年2月19日
周报
摘要: 周报 写在前言 放假到现在几乎没怎么训练与刷题,也不知道该怎么去描述,从回到家基本就待在医院陪老爸再到陪他最后一面,心情也很是复杂,其实我甚至想过退队,不知道该怎么说,也可能受到网上一些网友的言论影响,总之想多赚点钱,竞赛这条路从最开始的兴趣到现在开始迷茫了,老爸在的时候还想着兴趣在学校里也能打打算
阅读全文
posted @ 2024-02-19 00:01 Ke_scholar
阅读(52)
评论(0)
推荐(0)
2023年12月26日
树状数组模板
摘要: 单点修改,区间查询/区间修改,单点查询 template<typename T> struct BIT { int n; vector<T> w; BIT() {} BIT(int n) { this->n = n; w.resize(n + 1); } void update(int x, int
阅读全文
posted @ 2023-12-26 08:58 Ke_scholar
阅读(63)
评论(1)
推荐(0)
2023年12月24日
Kruskal和Prim模板
摘要: 例题:P3366 【模板】最小生成树 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) Kruskal #include <bits/stdc++.h> #define debug(a) cout<<#a<<"="<<a<<'\n'; using namespace std; usi
阅读全文
posted @ 2023-12-24 12:42 Ke_scholar
阅读(57)
评论(0)
推荐(0)
2023年12月16日
区间素数筛模板
摘要: 例题素数密度 template<typename T> struct segment_sieve { vector<bool> is_prime, is_prime_small; vector<T> prime; segment_sieve() { is_prime.resize(1000010);
阅读全文
posted @ 2023-12-16 16:27 Ke_scholar
阅读(54)
评论(0)
推荐(0)
2023年12月12日
拓扑排序模板
摘要: #include <bits/stdc++.h> using namespace std; struct toposort { vector<vector<int>> e; vector<int> tp , din; int n ; toposort() {} toposort(int n) { t
阅读全文
posted @ 2023-12-12 23:09 Ke_scholar
阅读(59)
评论(0)
推荐(0)
[NOIP2010 提高组] 关押罪犯 - 洛谷
摘要: P1525 [NOIP2010 提高组] 关押罪犯 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 种类并查集 #include <bits/stdc++.h> #define debug(a) cout<<#a<<"="<<a<<'\n'; using namespace std
阅读全文
posted @ 2023-12-12 17:24 Ke_scholar
阅读(81)
评论(0)
推荐(0)
最近公共祖先模板(LCA)
摘要: include <bits/stdc++.h> using namespace std; struct LCA { int n; vector<int> dep; vector<vector<int>> e; vector<array<int, 21>> fa; LCA() {} LCA(int n
阅读全文
posted @ 2023-12-12 02:08 Ke_scholar
阅读(53)
评论(0)
推荐(0)
2023年12月9日
Dijkstra单源最短路模板
摘要: struct DIJ { using i64 = long long; using PII = pair<i64, i64>; vector<i64> dis; vector<vector<PII>> G; DIJ() {} DIJ(int n) { dis.assign(n + 1, 1e18);
阅读全文
posted @ 2023-12-09 23:44 Ke_scholar
阅读(60)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
29
下一页
公告