上一页 1 ··· 4 5 6 7 8
摘要: 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—玉寻 阅读(17) 评论(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—玉寻 阅读(28) 评论(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—玉寻 阅读(17) 评论(0) 推荐(0)
摘要: 下过雨的 夏天傍晚 我都会期待 你说活在明天活在期待 不如活得今天很自在 第一天我存在 第一次能飞起来 ——————孙燕姿《第一天》 阅读全文
posted @ 2025-05-05 22:22 BIxuan—玉寻 阅读(31) 评论(1) 推荐(0)
上一页 1 ··· 4 5 6 7 8