这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《被特判反噬了》回复:
``` #include #define int long long using namespace std; const int N=2e4+7; const int M=2e6+7; const int T=11; int n,m,k; struct node { int u,v,w; }g[M]; int f[N…
在讨论《被特判反噬了》回复:
我加上这段不影响整段代码的正确性吧
在讨论《被特判反噬了》回复:
但我这段代码虽然没用,但不会有影响吧
for(int i=1;i<=k;i++) { scanf("%lld",&c[i]); sum+=c[i]; for(int j=1;j<=n;j++) { scanf("%lld",&a[i][j]); sum+=a[i][j]; g[++cnt]={n+i,j,a[i][j]}; } } if(sum==0) {…
在讨论《关于csp-s T2 特殊性质A》回复:
ok
在讨论《关于csp-s T2 特殊性质A》回复:
那不能直接选一个点在把这个点向n个城镇都连一条边吗,代价为0?
``` #include using namespace std; int n; const int N=70; int bz[N],w[N]; int len,sum; int dfs(int u,int s,int start) { if(u*len==sum) return 1; if(s==len) retur…
在讨论《求助B3609 [图论与代数结构 701] 强连通分量orz》回复:
谢谢
``` 样例过了全WA 求HACK+解析 拜托了 本蒟蒻图论弱,大佬轻喷 #include using namespace std; const int N=2e5+7; int tim,cnt,siz[N],dfn[N]; int e[N],ne[N],h[N],low[N]; int idx,id[N],d,dou…
``` 本蒟蒻图论太弱 我先求出强连通分量,接着建立缩点后的DAG,最后在图中记忆化, #include using namespace std; const int N=2e6+7; int h[N],e[N],ne[N],idx; int stk[N],instk[N],low[N],dfn[N]; int id[…
``` #include using namespace std; const int N=2e6+7; int h[N],e[N],ne[N],idx; int stk[N],instk[N],low[N],dfn[N]; int id[N],cnt,tim,top,s[N],w[N]; int xx[N],yy[N…
在讨论《help!!!》回复:
@[ZackofZHOU](/user/948216) 要用高精吗?