随笔分类 - 

上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要:#include<bits/stdc++.h> using namespace std; inline int read(){int x=0;bool f=0;char ch=getchar();while (ch<'0'||ch>'9'){if (ch=='-') f=1;ch=getchar() 阅读全文
posted @ 2024-10-22 16:13 yzc_is_SadBee 阅读(16) 评论(0) 推荐(0)
摘要:kmkmp #include<bits/stdc++.h> using namespace std; char str[1500005]; int n,kmp[1500005],cir[1500005],tms[30],suf[1500005],pre[2500005],per[27],cnt; l 阅读全文
posted @ 2024-10-22 15:44 yzc_is_SadBee 阅读(12) 评论(0) 推荐(0)
摘要:首先,这题最好的一个地方,在于它给出的关于next的讲解实在是妙极!!!!! 这题比我讲的好100倍! 赞美lg 捧lg的话到此为止,进入正文 题解 #include<bits/stdc++.h> using namespace std; const long long MOD=1e9+7; int 阅读全文
posted @ 2024-10-22 14:16 yzc_is_SadBee 阅读(13) 评论(0) 推荐(0)
摘要:最后还是照着题解A了这道题…… #include <bits/stdc++.h> using namespace std; int n,m,s,t,edge_sum=1; int maxflow,mincost; int dis[5005],head[5005],incf[5005],pre[500 阅读全文
posted @ 2024-10-22 13:23 yzc_is_SadBee 阅读(11) 评论(0) 推荐(0)
摘要:oh dear #include<bits/stdc++.h> using namespace std; int n,k,m,s,t,a[105][105],wen[105]; int d[100005]; bool vis[100005]; int qi,mo,f; inline int read 阅读全文
posted @ 2024-10-22 11:39 yzc_is_SadBee 阅读(11) 评论(0) 推荐(0)
摘要:酷狗没会员了QAQ #include<bits/stdc++.h> using namespace std; int n,m,f[1001],enm[1001]; int find(int x) { if(f[x]!=x) x=find(f[x]); return x; } void hebing( 阅读全文
posted @ 2024-10-22 11:16 yzc_is_SadBee 阅读(10) 评论(0) 推荐(0)
摘要:椒过 #include <bits/stdc++.h> using namespace std; int n,m,tot,lnk[505],ter[500005],nxt[500005],st[500005],ed[500005],deg[505]; double a[505][505],b[505 阅读全文
posted @ 2024-10-21 08:58 yzc_is_SadBee 阅读(15) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 15 下一页