这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
注意Rotate里面判断isroot的顺序... ```cpp inline void Rotate(int u) { int v=t[u].fa,w=t[v].fa; int b=(t[v].rc==u)?t[u].lc:t[u].rc; if(!isroot(v)) (t[w].lc==v?t[w].lc:t[w]…
在讨论《有大佬能帮忙看看我Splay和Rotate两个操作有问题吗?》回复:
我又仔细调了下,发现是这句出问题了 ```cpp while(!isroot(v)) sta[++top]=v=t[v].fa; ``` (Splay里的) 但是我感觉没问题啊....@紬文德斯,@绝影·天冥
在讨论《有大佬能帮忙看看我Splay和Rotate两个操作有问题吗?》回复:
别沉啊帖子
交上去只有十分,经过初步筛选,发现问题出在Splay和Rotate,但是我太菜了,调了半天也没觉得哪儿有错,麻烦诸位了 ```cpp #include const int N=300005; using namespace std; template inline void read(T &x) { x=0; int…
```cpp #include const int N=100005; using namespace std; template inline void read(T &x) { x=0; static char ch=getchar(); while(!isdigit(ch)) ch=getchar(); whil…
在讨论《请问查询排名为k的数算不算进重复的??》回复:
@[ZYyboT](/space/show?uid=14375) 哈哈哈哈哈
在讨论《请问查询排名为k的数算不算进重复的??》回复:
@[ZYyboT](/space/show?uid=14375) 噢噢好的 谢谢
在讨论《请问查询排名为k的数算不算进重复的??》回复:
@[ZYyboT](/space/show?uid=14375) 我的意思是比如工资为50的有5个,为60的有3个,那查从大到小第二个是输出60还是50?
在讨论《2在模9意义下的逆元是多少?》回复:
@[BigYellowDog](/space/show?uid=91681) 常用的是扩展欧几里得算法,把2×5≡1(mod9)当成方程来解
在讨论《机房怎么颓废比较好???》回复:
祖玛
在讨论《理想vs现实》回复:
woc...为什么要膜啊
洛谷眼中的我 ``` 有些问题刚开始觉得无从下手。好好想一想,尽量别看题解,否则你会大呼“简单”。 ``` 实际的我 ``` 有些问题刚开始觉得无从下手。好好想一想,尽量别看题解。不过就算看了,你也会大呼“不可做”。 ```
在讨论《OI刚学萌妹 第六个点WA了 为啥啊》回复:
我擦 不用了 41行符号写反了 不过为什么才WA一个点?????????
```cpp #include const int N=50005; using namespace std; int n,D; struct Node { int pos,h; friend istream&operator>>(istream &in,Node &x) { in>>x.pos>>x.h; retur…
在讨论《noip复赛怎么调试程序》回复:
@[SD191553](/space/show?uid=32527) 有毒吧
在讨论《noip复赛怎么调试程序》回复:
@[SD191553](/space/show?uid=32527) 活捉了可爱的zhd!
在讨论《推荐一些线段树的题目吧》回复:
https://blog.csdn.net/dreaming__ldx/article/details/81261996
在讨论《难道是树剖写丑了吗qwq为什么#13卡不过去啊》回复:
glf需要高超的卡常技巧
在讨论《我是OI 刚学萌新 bzojWA了 求助》回复:
@[Harry_bh](/space/show?uid=19951) 呃呃 是一样的
在讨论《初学tarjan板子题求助》回复:
```cpp if(low[x]==dfn[x]) { sum++; while(s.top()!=x) { vis[s.top()]=false; s.pop(); color[sum]++; } } ``` 建议写do-while,因为x没有被你弹出去
两种写法 一个T(注释) 一个WA 绝望了(洛谷ac) ``` #include #define N 2005 using namespace std; template inline void read(T &x) { x=0; static char ch=getchar(); while(!isdigit(ch)…
在讨论《走过路过来看一看》回复:
@[g21glf](/space/show?uid=31639) 强啊glf 一发A掉紫题
在讨论《求推荐区间dp好题》回复:
矩阵取数游戏
在讨论《萌妹求助 BZOJ AC 洛谷TLE 求大佬帮看看》回复:
@[以梦为名](/space/show?uid=94511) 人家真是萌妹啦
在讨论《萌妹求助 BZOJ AC 洛谷TLE 求大佬帮看看》回复:
哎呀 萌妹贴错代码啦~ ```cpp #include #define N 50005 #define M 100005 using namespace std; struct Edge { int from,to,color,val; }edge[M]; template inline void read(T &x)…
```cpp #include #define N 805 #define eps 1e-6 using namespace std; int n,father[N],s,t; double L; struct Point { double x,y; }p[N]; inline int getfather(int x)…
```cpp void Topo_sort() { queue q; q.push(x1); while(!q.empty()) { int now=q.front(); q.pop(); for(int u=head[now];u;u=res[u].next) { int vis=res[u].to; in[vis]…