摘要:
傳送門 #include <bits/stdc++.h> const int N=800005,W=19; typedef long long ll; int f[N][W+1],l[N],r[N],sl[N],sr[N],ls[N],rs[N],deep[N],cnt,rt,pos[N],n,Q, 閱讀全文
posted @ 2021-02-06 11:43
flyfeather
閱讀(76)
評論(0)
推薦(0)
摘要:
傳送門 #include <bits/stdc++.h> const int N=500005; int to[N<<1],edge,Next[N<<1],last[N],siz[N],g,L[N*20],R[N*20],w[N<<1]; int v[N*20],vis[N],cnt,st[N*20 閱讀全文
posted @ 2021-02-06 11:37
flyfeather
閱讀(74)
評論(0)
推薦(0)
摘要:
#include <bits/stdc++.h> typedef long long ll; ll dp[40][40][40],ans; int n,a[40][40]; char s[40]; ll dfs(int l,int r,int mid){ if (l==r) return 1; if 閱讀全文
posted @ 2021-02-06 11:27
flyfeather
閱讀(118)
評論(0)
推薦(0)
摘要:
#include <bits/stdc++.h> const int N=200005; int n,v,a[N],dl[N][20],dr[N][20],pre[1<<20],suf[1<<20],dp[N],W; int main(){ scanf("%d%d",&n,&v); for (int 閱讀全文
posted @ 2021-02-06 11:23
flyfeather
閱讀(74)
評論(0)
推薦(0)
摘要:
#include <bits/stdc++.h> const int N=200005; typedef long long ll; struct note{ int l,r; }a[N]; int n,k,x,y,b[N],cnt,t[N<<2]; ll S,lst,dp[N]; void pus 閱讀全文
posted @ 2021-02-06 11:17
flyfeather
閱讀(84)
評論(0)
推薦(0)
摘要:
#include <bits/stdc++.h> typedef long long ll; const int N=105; int n,m,K,d,f[N][N][N],g[N][N][N],mu,C[N][N],p[N][N*N],p2[N][N][N]; int main(){ scanf( 閱讀全文
posted @ 2021-02-06 11:11
flyfeather
閱讀(73)
評論(0)
推薦(0)

浙公網安備 33010602011771號