这个蒟蒻太弱了,什么AC也没留下
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《建议降绿》回复:
@[signed_long_long](luogu://user/741314) 为什么
这题的题目大意是这样的:我们有一棵以节点一为根树, 我们要用最少的花费经过这一棵树的所有节点(不用返回根)。 我们不妨把这个问题转化一下: 我们先算出它经过所有点返回根所需要的值, 再用这个值减去返回根的花费 经过简单的推演可得:不管我们最后走哪里, 经过所有点返回根都需要经过每条边两遍, 那么经过所有点返回根所需要的…
题目大意:有一个正整数序列a,有m个处理, 每个处理会给一个li一个ri,你可以使ali到ari中的每一个数 加一减一或不变 我们先求出a序列中每个数最小可以到多少和最大可以到多少即每个数的取值范围。 然后选一个区间使得所有数都可以取到这个区间的数。 这句话比较难理解,可以多读几遍。 实现方法: 我们先算出每个ai的层…
本地跑测试点仅需1ms交上去就全T了。 ```cpp #include #include using namespace std; long long t,n,e,d; int f(){ int h=1,t=sqrt(n); while(h >t; while(t--){ cin>>n>>e>>d; f(); } }…
在讨论《已过 提供两个数据》回复:
@[Py_Cpp](luogu://user/1665181) 可以帮助他人
输入1: 100 100 1 1 0 2 2 0 3 3 0 4 4 0 5 5 1 6 6 0 7 7 1 8 8 0 9 9 1 10 10 1 11 11 1 12 12 0 13 13 0 14 14 1 15 15 1 16 16 0 17 17 1 18 18 1 19 19 0 20 20 1 21 21…
在讨论《52分求条,改对闭关》回复:
@[xzk2012](luogu://user/1429668) 感谢?,已关
在讨论《52分求条,改对闭关》回复:
@[a_cow_of_FJ](luogu://user/1391214) 太感谢了,已关
```cpp #include #include using namespace std; struct t{ int dis,u; bool operator>(const t& a)const{return dis > a.dis;} }; struct p{ int r,e; }; bool b[200001];…
在讨论《CZOI Easy Round 5 赛后总结》回复:
@[PCSJZ](luogu://user/1124898) 不愧是李泳霖小盆友,居然知道这么多AI网址
在讨论《CZOI Easy Round 5 赛后总结》回复:
@[_O_v_O_](luogu://user/782941) +1
在讨论《全RE求助》回复:
@[dg114514](luogu://user/1373205) 没事,已AC
```cpp #include using namespace std; vector w; bool b[100000001]; int a[600001],o,n,q; void f(int n){ a[1]=1; for(int i=2;i n)break; b[i*j]=true; if(i%j==0){ a[…
贪心+完全背包 ```cpp #include using namespace std; int f[101],t,n,m,a[101][101]; int main(){ cin>>t>>n>>m; f[1]=m; for(int i=1;i >a[i][j]; for(int i=2;i<=t;i++){ int…
在讨论《63分求调》回复:
@[felixzou](luogu://user/1286101) 已关注(^_^);
在讨论《63分求调》回复:
@[LIANGMINGY](luogu://user/1708023) 改对必关
```cpp #include using namespace std; long long n,k,dp[16][16][16]; int main(){ cin>>n>>k; for(int i=1;i >dp[i][i][0]; for(int g=0;g<=k;g++) for(int l=1;l<n;l++)…
在讨论《80pts求调》回复:
@[LIANGMINGY](luogu://user/1708023) 改对必关
```cpp #include using namespace std; map ,int>w; int n,x,y,ss,sum[6001],a[6001],f[6001],dp[6001]; bool b[6001],bb[6001],c[6001]; void ff(int o) { for(int i=1; i…
在讨论《65分求调,改对必关》回复:
谢谢
```cpp #include #include using namespace std; short x,y,xc[5]={0,1,-1},yc[5]={0,0,0,1,-1},a[101[101],dx[80001]={0,1},n,m,dy[80001]={0,1}; int f[101][101],h,t=1,…
```cpp ``` #include #include using namespace std; short x,y,xc[5]={0,1,-1},yc[5]={0,0,0,1,-1},a[101][101],dx[80001]={0,1},n,m,dy[80001]={0,1}; int f[101][101],h…