这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《NOIP 2023 游记集合贴【更新至24 页】》回复:
[https://www.luogu.com.cn/blogAdmin/article/edit/670373](https://www.luogu.com.cn/blogAdmin/article/edit/670373)
在讨论《T2瞎搞做法》回复:
论小秃驴100,你谷40pts
[rt](https://www.luogu.com.cn/paste/9xfsidce),带权集,尝试合并然后有矛盾就整树赋U 赛时没删调试,但是删了也wa 我想知道是假了还是咋回事,有巨佬看看?
在讨论《看上去好像假了》回复:
fill那行不是主要根源
rt,T2 40pts ``` #include using namespace std; const int maxn=5e5+100; const int T=3e5+11, F=3e5+12, U=3e5+13; int fa[maxn],w[maxn],lst[maxn],psz; int Find(int u…
在讨论《FHQ treap求调》回复:
请明确排名的意义:比之小的数的个数 **+1** ``` if(tre[tre[rt].lson].siz<=rk-1){ return get_k(tre[rt].lson,rk); } else if(tre[tre[rt].lson].siz+1==rk){ return tre[rt].val; } else{…
rt,怀疑是取模的问题。 rv[i]是 $10^i$。 ```cpp #include using namespace std; //dp: 子树内点到u的值和 const int maxn=1e6+10; vector g[maxn]; #define int long long const int mod=9982…
几种常见错误 ```cpp //正确 int Find(int u) { if(fa[u]) { int f=fa[u]; fa[u]=Find(fa[u]); w[u]=(w[f]+w[u]+mod)%mod; return fa[u]; } return u; } //错误 int Find(int u) { if…
rt,经典30pts. w[u] 为 u 节点相对于其父亲的关系,0 同类,1 被吃,2 吃。 ```cpp #include using namespace std; const int maxn=5e4+10; const int mod=3; int fa[maxn],w[maxn]; int Find(int…
在讨论《关于vscode官网被重定向到国家反诈中心》回复:
https://code.visualstudio.com/ ? 我这边挺好啊,要不检查一下您的 dns ?
在讨论《WA100pts求调》回复:
@[Chenyanxi](/user/676876) 感谢
在讨论《萌新求助一道组合证明题》回复:
以及第一步没看懂Qwq
在讨论《萌新求助一道组合证明题》回复:
@[zifanwang](/user/329857) $ \begin{aligned} &2\sum_{k=0}^{\lfloor\frac{n}{2}\rfloor}\binom{n}{k}((n-k)-k)\\ &=2\sum_{k=0}^{\lfloor\frac{n}{2}\rfloor}\binom{n}{…
rt。讨论区的hack都过了。 ```cpp #include using namespace std; const int maxn=1e5+19; using Pii=pair ; struct E { int t,p; bool operator > st; vector out; int main() { in…
在讨论《求助校内模拟赛赛题》回复:
std 看不懂,但以下是口胡。 题目是说在有一定的积木已经摆上的情况下,搭出最高塔的高度多大。 有个性质,就是最少块数的搭建方式一定是金字塔状的。可以从上往下推知。这样的金字塔总是能自下而上地搭起来的。 显然具有单调性。于是我们二分金字塔的高度也就确定了其形状,检查时左右挪动之使得包含尽可能多的已有积木。随后查看方块数…
在讨论《关于结构体初始化》回复:
@[CleanIce](/user/821660) 其实可以用模板类,此贴结。
在讨论《数据极弱》回复:
https://www.luogu.com.cn/record/127169471
rt,就比如现在有个结构体 ```cpp struct Tree { Func_type op; Tree(Func_type op):op(op){} .... }; ``` 要是想要将它的一个数组用同样参数初始化,该怎么做? 即: ```cpp Func_type op1,op2; Tree a[10],b[10]…
rt,[Unaccept 100pts. ](https://www.luogu.com.cn/record/127146057) 孩子卡了2h了,求调QwQ ```cpp #include using namespace std; #define int __int128 using LL=long long; co…
在讨论《评价一下自创题目难度》回复:
洛谷上应该没有公开的
在讨论《2018俄罗斯足球世界杯讨论专区》回复:
考古
在讨论《沉痛!Adobe 之父 John Warnock 博士离世,享年 82 岁》回复:
**R.I.P**
在讨论《评价一下自创题目难度》回复:
不过有一说一,这题好典啊。 我1月份就看见灌水区有个一样的题QwQ
在讨论《【求助】关于浮点数运算》回复:
@[qwqawaqaq](/user/563958) ```cpp #include using namespace std; int main() { double d; memset((void*)(&d),0xff,sizeof(double)); cout<<d<<' '<<sqrt(-1)<<endl; co…