马蜂偏左
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《诡异代码qt》回复:
@[CJR_Rain](luogu://user/1382345)感谢 已过 第一次犯这种错还真没看出来[捂脸]
```cpp #include using namespace std; long long t,n,m,f[100]; struct as{ long long a,b,c; }a[100]; bool qw(as x,as y){ x.c*y.b =a[i].c;j--){ f[j]=max(f[j],f[j-a[…
```cpp #include using namespace std; long long t,n,m,f[100]; struct as{ long long a,b,c; }a[100]; bool qw(as x,as y){ x.c*y.b =a[i].c;j--){ f[j]=max(f[j],f[j-a[…
在文章《题解:P7345 【DSOI 2021】吟唱的金色花海》发表评论:
@chants 低调~
在文章《题解:P7345 【DSOI 2021】吟唱的金色花海》发表评论:
这思路真是太妙了,讲的真好(已关) %%%orz
# 算法:二分和分治 注:代码和思路由 [54zyd](https://www.luogu.com.cn/user/1353816) 和 [willw](https://www.luogu.com.cn/user/1351400) 合作完成 (熬夜写了 5 个小时)。 ### 大体思路 由题意得,$(x_0,y_0)$…
# 简单入门题 ### 首先我们要明白为什么要选多个根 + 因为在只有一个固定根时,就会出现兄弟节点系不上绳的情况。 + 所以只要交一个根节点,那么这个根节点原来的兄弟节点就会变成这个根节子节点,这样他们之间就可以系上绳了。 *** ### 其次我们要知道要选什么样的结点为根 + 当然是叶子节点啦。 + 因为当一个叶子…
```cpp #include using namespace std; int n,m,x,y,a[1100000]; struct as{ int a,l; int s,lm,rm,m,f; int s0,lm0,rm0,m0,f0; }t[4400000]; ///////////////////////////…
``` #include using namespace std; int n,m,x,y,a[1100000]; struct as{ int a,l; int s,lm,rm,m,f; int s0,lm0,rm0,m0,f0; }t[4400000]; //////////////////////////////…
``` #include using namespace std; long long n,m,r,f[1100000]; struct as{ long long a,s,d; }a[11000]; bool qw(as q,as w){ return q.s =a[i].s;j--){ if(a[i].a-r-1>…
在文章《再学欧拉之欧拉定理》发表评论:
%%%orz
在讨论《P2607求调》回复:
@[lovely_codecat](luogu://user/775975)谢谢
我抄的题解:[https://www.luogu.com.cn/article/mneyg5i4](https://www.luogu.com.cn/article/mneyg5i4) ``` #include #include #include #define maxn 2000000 using namespace…
在讨论《P2607求调》回复:
我抄的题解:[https://www.luogu.com.cn/article/mneyg5i4](https://www.luogu.com.cn/article/mneyg5i4)
我抄的题解:[https://www.luogu.com.cn/article/mneyg5i4](https://www.luogu.com.cn/article/mneyg5i4) ``` #include using namespace std; long long n,fa[1100000],f[1100000…
在文章《题解:P7074 [CSP-J2020] 方格取数》发表评论:
%%
``` #include using namespace std; int n,s,t[100010],c[100010],p[100010],k,f[100010]; int main(){ string q,w; cin>>q>>w; s+=(w[0]-q[0])*60+(w[2]-q[2])*10+(w[3]-q…
在讨论《P1253求助》回复:
@[ask_tang](luogu://user/1022974)P1253
``` #include using namespace std; #define v k-(t[d])*u int n,m,a[100100],t[404000],q,x,y,k,u,z[101000]; void bu(int d,int l,int r){ if(l==r){ t[d]=a[l]; return;…
在讨论《P3372求调》回复:
@[real_dream](luogu://user/1446356) 谢谢,我明白了
```cpp #include #define ll long long using namespace std; ll n,m,a[10100000],x,y,k,z[10100000],t[10100000]; void down(ll d,ll l,ll r){ if(z[d]){ ll q=d*2,w=d*2+…
``` #include using namespace std; int n,m,s[9999],l,p; struct asdf{ int a[999]; }q; void qw(asdf f,int d,int g){ if(d>m){ l=m; p=1; return; } for(int i=1;i =0){…
``` #include using namespace std; int main(){ long long a,s,d; scanf("%lld%lld",&a,&s); printf("%lld.",a/s); a=a%s*10; for(int i=1;i<=9;i++){ printf("%lld",a/s)…
在讨论《B2011为啥80》回复:
@[liujinxv123](/user/1149762) double a,s; scanf("%lf %lf",&a,&s); a=a%s 不行
在讨论《B2011为啥80》回复:
@[liujinxv123](/user/1149762) double不让用%
``` #include using namespace std; int main(){ long long a,s,d; scanf("%lld%lld",&a,&s); printf("%lld.",a/s); a=a%s*10; for(int i=1;i<=9;i++){ printf("%lld",a/s)…
``` #include using namespace std; int main(){ long long a,s,d; scanf("%lld%lld",&a,&s); printf("%lld.",a/s); a=a%s*10; for(int i=1;i<=9;i++){ printf("%lld",a/s)…
在讨论《P8776 只过了一半 另一半TLE 谁能帮忙改改qwq》回复:
@[_WhiteDeer_](/user/768238) 那我的想法对吧 用线段树太麻烦了