这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include #include #include using namespace std; const int N=2e5; int n,m,rt[N+5],lc[(N >1; lc[tem]=build(l,mid); rc[tem]=build(mid+1,r); } return tem; }…
```cpp #include #include #include #include using namespace std; typedef long long ll; const int N=5e4+5; int n,m,k,c[N],b[N]; ll ans,s[N]; struct DeepDarkFantas…
在讨论《Splay WA 0》回复:
@[20181gdgzoi236_lc](/space/show?uid=118318) 已经对了,还是感谢
在文章《莫队算法初探》发表评论:
后排Orz
在讨论《Splay WA 0》回复:
@[suyiheng](/space/show?uid=114149) fAKe
在讨论《Splay WA 0》回复:
下面的数据就错了
在讨论《Splay WA 0》回复:
貌似是MAX_SUM有问题 ```cpp if(ch[2]=='X')printf("%d\n",mx[root]); ```
```cpp #include #include #include using namespace std; const int N=1e6+5,inf=1000000000; int ch[N][2],par[N],a[N],s[N],v[N]; int sum[N],mx[N],lx[N],rx[N],id[N];…
在讨论《Splay,样例都过不了》回复:
好像MAX_SUM操作还有问题
在讨论《Splay,样例都过不了》回复:
@[chino在我身下受](/space/show?uid=111762) 过了,Orz大佬
在讨论《Splay,样例都过不了》回复:
@[Nova_守门员](/space/show?uid=110976) 您是不是我每发一个帖都要Orz一次QAQ,AK大佬憋装了QAQ(#`O')
在讨论《Splay,样例都过不了》回复:
@[chino在我身下受](/space/show?uid=111762) 感谢,我再试试
```cpp #include #include #include using namespace std; const int N=1e6+5,inf=1000000000; int ch[N][2],par[N],a[N],s[N],v[N]; int sum[N],mx[N],lx[N],rx[N],id[N];…
在讨论《对于犇犇,是不是有个更好的方法?》回复:
等待删帖暴政QWQ
在讨论《求助,splay过不了》回复:
@[Fading](/space/show?uid=20309) 貌似我不是按第一篇题解打的
在讨论《求助,splay过不了》回复:
rank改成酱紫后WA 0了QWQ ```cpp find(x); if(v[root]>=x)printf("%d\n",s[ch[root][0]]-1); else printf("%d\n",s[ch[root][0]]+cnt[root]-1); ```
在讨论《求助,splay过不了》回复:
@[suyiheng](/space/show?uid=114149) 不要装了QAQ
在讨论《求助,splay过不了》回复:
前面两句freopen请忽略
在讨论《求助,splay过不了》回复:
@[サイタマ](/space/show?uid=38485) 但是我不止被卡掉一个点
RT ```cpp #include #include using namespace std; const int N=1e5+5; int ch[N][2],par[N],v[N],cnt[N],s[N],tot,root; bool chk(int x){ return ch[par[x]][1]==x; } v…
在讨论《大佬们,救救刚学OI的我吧!》回复:
不是求前驱后继与当前数的差的绝对值的较小值吗。。
在讨论《大佬们,救救刚学OI的我吧!》回复:
orzorzorz
在讨论《更改代码显示字体的方式》回复:
后排
在讨论《2019 年洛谷日报索引》回复:
后排+1
在讨论《洛谷网校2019春令营开始报名》回复:
资瓷
在讨论《WA 0》回复:
@[白いバラの夜](/space/show?uid=125109) 。。。
RT ```cpp #include #include using namespace std; const int N=3e4+5; int n,m,head[N],sum[N >1,res=0; if(nl mid)res=max(res,found1(nl,nr,mid+1,r,id >1,res=0; if(n…
在讨论《90分求助》回复:
有没有正常一点的
```cpp #include #include using namespace std; const int N=1e5+5; int n,m,a[N],cnt,ans[N >1; build(l,mid,id id[y]||id[x]+size[x]-1 >1; if(nl mid)add(nl,nr,k,mid+…
别看到是树剖就走啊喂~ RT,我已经全开longlong了QAQ ```cpp #include #include #include using namespace std; const int N=1e5+5; long long ans[N g[N]; void dfs(long long u){ size[u]=…