摘要: 切不动了!!! #include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<=b;++i) using namespace std; inline int read(){int x=0;bool f=0;char ch=getchar();whi 阅读全文
posted @ 2024-10-22 20:39 yzc_is_SadBee 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int p,q,dp[15][15],a[15]; void init() { for(int i=0;i<=9;i++) dp[1][i]=1; for(int i=2;i<=10;i++)for(int j 阅读全文
posted @ 2024-10-22 20:08 yzc_is_SadBee 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; typedef long long long long; const int INF=0x3f3f3f3f; const long long mod=1e9+7; long long c1[1000005], 阅读全文
posted @ 2024-10-22 18:54 yzc_is_SadBee 阅读(1) 评论(0) 推荐(0) 编辑
摘要: sb大括号,卡我114514ms #include <bits/stdc++.h> using namespace std; const int maxn=100005,maxk=104,mod=1000000007; int f[maxn][maxk][2][2]; int g[maxk][2][ 阅读全文
posted @ 2024-10-22 18:16 yzc_is_SadBee 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 胶过,唐 #include<bits/stdc++.h> using namespace std; int n,m; double a[100010]; struct node { double mx; int len; #define m(x) t[x].mx #define l(x) t[x]. 阅读全文
posted @ 2024-10-22 16:53 yzc_is_SadBee 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(1) 评论(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 阅读(2) 评论(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 阅读(1) 评论(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 阅读(1) 评论(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 阅读(1) 评论(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 阅读(1) 评论(0) 推荐(0) 编辑