摘要:
#include <bits/stdc++.h> const int N=100005; int edge,last[N],dp[N],ans[N],cnt,n,x,y,Ans,dfn[N],idn,f[N]; struct Edge{ int to,Next; }e[N<<1]; void add
閱讀全文
摘要:
#include <bits/stdc++.h> const int N=1000005; std::vector<int> e[N]; int a[N],n,m,x,y,r[N],c[N],id[N],cnt,cnt2,s[N],vis[N]; void dfs(int x){ if (vis[x
閱讀全文
摘要:
傳送門 #include <bits/stdc++.h> typedef long long ll; ll l,r,mid; int t; int main(){ scanf("%lld%lld",&l,&r); if (l==r){ puts("1"); return 0; } for (int
閱讀全文
摘要:
#include <bits/stdc++.h> int p[15],ct[550005],a[30005],w,n,T,x,c[550005]; long long ans; char s[15]; int cal(int x){ int ret=0; for (int i=0;i<w;i++)
閱讀全文
摘要:
#include <bits/stdc++.h> #define int long long typedef long long ll; const int N=1000005; int m,a[N],f[N],p[N],n,cnt,x,ans; std::map<int,int> id; std:
閱讀全文