历史的墙上挂着矛和盾,另一张脸在下面走动
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《全体目光向我看齐——求助!!!》回复:
原因是,原因就是,怎么会这样呢,但原因就是 2是质数:) 原代码改了就过了
在讨论《旋转卡壳为什么枚举的是直线》回复:
枚举直线精度比较高
在讨论《nm暴力求交叉路径卡过去了》回复:
@[AC_love](/user/186472) 你说得对,但是这就是NOIP(~~滑稽~~)
#### 我nm时间复杂度竟然卡过去了 ```cpp #include #define ll long long #define pa pair using namespace std; const int N=3e5+3; int head[N]; int n,m,cnt=1,id=0,num=0; int dfn[…
在讨论《错误的数据范围?》回复:
[我的评测记录](https://www.luogu.com.cn/record/135878293)
在讨论《错误的数据范围?》回复:
@[Thomas121213](/user/958804) 我是1e6+7啊,我基本上都要多几个的
### 为什么我N开到2e6就过了,开1e6会RE两个点 ```cpp //#include #include #include #include #include #include #include #include #include #include #define ll long long #define lx…
在讨论《有没有大佬指导一下我这个线性基做法哪里出了问题》回复:
悬赏5r
在讨论《大佬求调》回复:
@[enyyyyyyy](/user/961881) 谢谢你,可是不行,而且这题我已经换成暴力过去了
在讨论《80分求助!!急嘤嘤嘤》回复:
换成实数储存而不是数组就对了,不知道这个为什么不行,怎么会是啊
```cpp #include #define p 2008 using namespace std; int n,m; char s[65]; int t[65]; int shu[65][65]; void insert(int x,char *s){ for(int i=1;i =1;i--){ if(!shu[…
```cpp #include using namespace std; const int N=603; int n,m,cnt=1; int t[38]; set s[43]; struct ed{ int b[38]; }a[38],c; void to(int x,int y){ for(auto i=s[x]…
在讨论《警钟撅烂》回复:
我就是混着用一点问题没有
在讨论《提问 回路的定义是什么》回复:
方案数指的是每次选择的起点吧,这里无论怎么走都要从5开始,方案数就是一种
```cpp #include using namespace std; int n,a[103],f[103]; int main(){ scanf("%d",&n); for(int i=1;i =a[i]&&j!=i)continue;//保证i这个人最高 if(a[j]>f[len])f[++len]=a[j]…
在讨论《关于做法》回复:
我也不想考虑这个问题了,但是他们差分真的好快(顺便说一句,题解一楼的代码怎么T了,是我的打开方式不对吗)
本人把树剖板子题的细节修改了下,并没有考虑差分的做法,吸口氧才过,这题如果用树剖的话可以进行这样的优化吗 ```cpp #include #define lx (x >1) using namespace std; const int N=3e5+3; int n,cnt=0,b[N]; int a[N]={0},fa…
在讨论《问大家一个形式上的问题》回复:
@[小菜鸟](/user/60489) 好的好的谢谢
在讨论《问大家一个形式上的问题》回复:
@[bamboo123](/user/369181) 因为我习惯这样的遍历 ```cpp for(int i=0;i<edge[x].size();i++) int to=edge[x][i]; ``` 233333
在讨论《问大家一个形式上的问题》回复:
@[bamboo123](/user/369181) 刚学图论,之前写最小生成树我就写了一个存from的,因为Kruskal算法需要那个排序嘛,其他的我都从不存from的角度思考,存from的不会写了
在讨论《问大家一个形式上的问题》回复:
@[小菜鸟](/user/60489) orzorz,我不怕笑话,链式前向星我一直搞不明白,一般边少需要排序的我就用邻接矩阵,需要这样便利的我就邻接表,存from的就叫链式前向星吗,我看别人存边的时候,不限于这个题,都是结构体里一个from,一个to,一个权值,没有我这样写的啊,我这最多存一个to,存一个权值.刚学图论…
在讨论《问大家一个形式上的问题》回复:
我这个树链剖分存了很多没有用的数据,参考价值比较少了
我写了一个树链剖分,发现和别人不太一样 ```cpp #include using namespace std; const int N=5e5+3; int n,m,s; int fa[N],dep[N],siz[N],hson[N],dfn[N],rnk[N],top[N],cnt=0; vector edge[N…
在讨论《vector存边,36分求调》回复:
@[2124Kobe](/user/576934) 多谢指点迷津,好人一生平安
```cpp #include using namespace std; const int N=1e5+3; int n,m,s,d[N],vis[N]; struct E{ int to,dis; }; vector edge[N]; int main(){ scanf("%d%d%d",&n,&m,&s); fo…
在讨论《80分MLE求助》回复:
@[Dreamlands](/user/355507) 什么意思啊,我也用邻接表mle了
在讨论《大佬速来花几秒看一看》回复:
@[a_luogu_bot](/user/920292) 谢谢
在讨论《大佬速来花几秒看一看》回复:
@[guohanxing](/user/452326) 谢谢