蒟蒻
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《求助部分分链的情况》回复:
@[LK_Luogu](/user/153123) 那请问题目中那句 \forall 1 \leq i \lt n∀1≤i<n,存在一条边 (p_i, p_i + 1)(p i ,p i +1)该如何理解?(不知道为啥复制过来就成这样了,烦请到题目最下端看一下A的解释) 2-1-3-4中的1-3难道没有违反这句…
1号数据输入: ``` 4 3 1 2 1 1 3 1 1 4 2 ``` 输出:5 树的直径是3,那为什么答案不是4呢? 下面贴一下我的代码,就只A了一个点 ```cpp #include using namespace std; const int maxn=200010; int n,m,head[maxn],c…
``` #include using namespace std; const int maxn=10010; int n,m,fa[maxn],cnt,num; long long x[maxn],y[maxn]; double ans; struct edge{ int u,v; double w; }e[maxn…
在讨论《全RE求助》回复:
@[Brian_WBY](/user/297433) 感谢大佬!!!
在讨论《全RE求助》回复:
@[违规用户名1A8F1D09](/user/226148) 我的天,又全T了,大佬能否再帮我看看 ```cpp #include using namespace std; const int maxn=500010; const long long INF=2147483647; int n,m,s,head[max…
用的SPFA 本地跑没问题 想问问各位大佬是哪里出问题了 ```cpp #include using namespace std; const int maxn=500010; const long long INF=2147483647; int n,m,s,head[maxn],cnt,que[maxn],l,r,…
```cpp #include using namespace std; const int maxn=100010; int q,swi,x,lst,root; struct node{ int l,r,val,sum,cnt; }t[maxn]; void insert(int &p,int a){ if(!p){…
在讨论《为什么我的程序上传以后会抽风???》回复:
找到原因了……数组p开大点就好了,**但是为什么会这样呢???**
RT,楼主刚才用完全一样的程序连续评测了N次,每次的结果都不一样,下载数据以后在本地跑都是正确的,在洛谷IDE上跑却也是抽风,答案有时正常有时奇怪,下面是代码,萌新第一次遇到这种奇怪的问题,求解。 ```cpp #include using namespace std; struct peanut{ int x,y,w…
在文章《题解 P1164 【小A点菜】》发表评论:
感谢%%%
在讨论《CE求助》回复:
@[tianshu](/space/show?uid=121080) 好的感谢你,我想起来了好像是有find函数
```cpp #include using namespace std; long long w[30][30][30]={0}; long long find(long long a,long long b,long long c) { if(w[a][b][c]!=0) return w[a][b][c]; els…
```cpp #include using namespace std; long int a[100000]; int n; void Sor(int left,int right) { int mid=(left+right)/2,i=left,j=right; do { while(a[i] a[mid])j--…