上一页 1 ··· 4 5 6 7 8
摘要: 中国剩余定理 CRT 定义 CRT 问题的解决方法 代码 模板题 P1495 【模板】中国剩余定理(CRT)/ 曹冲养猪 #include<bits/stdc++.h> using namespace std; long long mod[0],yu[20]; long long M=1; long 阅读全文
posted @ 2025-07-04 09:34 BIxuan—玉寻 阅读(14) 评论(0) 推荐(0)
摘要: ![image](https://img2024.cnblogs.com/blog/3644674/202507/3644674-20250703163102672-614331540.png) 阅读全文
posted @ 2025-07-03 16:32 BIxuan—玉寻 阅读(25) 评论(0) 推荐(1)
摘要: 你们这待遇不错,既能学习知识,又有水帘洞可以观赏,你们在哪个机房能享受这待遇?听着水声,可能还会有一种触电的感觉!————huge 2025.7.2 19:10 阅读全文
posted @ 2025-07-02 19:21 BIxuan—玉寻 阅读(32) 评论(0) 推荐(1)
摘要: 线段树 #include<bits/stdc++.h> using namespace std; int a[1000010],n,m; struct xd_tree { int l,r,sum; }; xd_tree tree[4000010]; #define flzc (root<<1) #d 阅读全文
posted @ 2025-05-26 22:23 BIxuan—玉寻 阅读(31) 评论(0) 推荐(1)
摘要: 一维树状数组 1. 单点修改,区间查询 #include<bits/stdc++.h> using namespace std; long long n,q; long long a[1000100],c[1000100]; long long lowbit(long long x) { retur 阅读全文
posted @ 2025-05-25 00:33 BIxuan—玉寻 阅读(31) 评论(0) 推荐(0)
摘要: C 组合数(杨辉三角形//递推) #include<bits/stdc++.h> using namespace std; int c[10010][110]; int mod=10007; int main() { int n,m; c[1][1]=1; c[2][1]=2; cin>>n>>m; 阅读全文
posted @ 2025-05-18 14:12 BIxuan—玉寻 阅读(18) 评论(1) 推荐(0)
摘要: Prim #include<bits/stdc++.h> using namespace std; struct edge { int v,w,next; }e[200005<<1]; int head[5005],dis[5005],cnt,n,m,tot,now=1,ans,inf=123456 阅读全文
posted @ 2025-05-17 17:51 BIxuan—玉寻 阅读(11) 评论(0) 推荐(0)
摘要: 矩阵乘法 #include<bits/stdc++.h> using namespace std; int a[110][110],b[110][110],c[110][110]; int n,m,k; int main() { cin>>n>>k; for(int i=1;i<=n;i++) { 阅读全文
posted @ 2025-05-17 08:16 BIxuan—玉寻 阅读(32) 评论(1) 推荐(0)
摘要: spfa #include <bits/stdc++.h> using namespace std; int dis[500010], n, m, x, y, w, t = 1, s, h, head[500010], tot; bool v[100010]; queue<int> q;//手写队列 阅读全文
posted @ 2025-05-11 22:51 BIxuan—玉寻 阅读(18) 评论(0) 推荐(0)
摘要: 下过雨的 夏天傍晚 我都会期待 你说活在明天活在期待 不如活得今天很自在 第一天我存在 第一次能飞起来 ——————孙燕姿《第一天》 阅读全文
posted @ 2025-05-05 22:22 BIxuan—玉寻 阅读(36) 评论(1) 推荐(0)
上一页 1 ··· 4 5 6 7 8