- [NOI 2004]郁闷的出纳员
https://gxyzoj.com/d/hzoj/p/P446
- return getval(tr[x].r,v-tr[tr[x].l].size-1) 写作 return getval(tr[x].r,-tr[tr[x].l].size-1)导致无限递归,TLE
- [abc232_e]Rook Path
https://gxyzoj.com/d/hzoj/p/abc232e
- w,h写反,一分不剩
- Increase Sequence:
https://gxyzoj.com/d/hzoj/p/3468
- 没写t--,一分不剩
- [Tjoi2013]最长上升子序列:
https://gxyzoj.com/d/hzoj/p/P2010
-
tr[x].size=tr[tr[x].l].size+tr[tr[x].r].size+1 写作 tr[x].size=tr[tr[x].l].size+tr[tr[x].r].size
-
tr[x].pos=id 写作 tr[id].pos=id
- [Lydsy1706月赛]大根堆:
https://gxyzoj.com/d/hzoj/p/P1624
-
find(rs[id],mid+1,r,k-sum[ls[id]]);写作find(rs[id],mid+1,r,k);一分不剩
-
if(sum[ls[id]]>=k)写作if(sum[ls[id]]<=k),一分不剩
-
数组集体开小1/2,挂30pts
- bzoj4399: 魔法少女LJJ
https://gxyzoj.com/d/hzoj/p/P1623
-
数组集体开小1/4,挂20pts
-
cut_right(ls[id],l,mid,x)写作cut_left(ls[id],l,mid,x),挂80pts
-
调试语句 freopen("1.txt","w",stdout);未注释
- 「BZOJ 2142」礼物
https://gxyzoj.com/d/hzoj/p/P513
-
ll d=exgcd(b,a%b,ax,ay);写作ll d=(b,a%b,ax,ay);
-
n,m写反
- [HNOI2004]树的计数
https://gxyzoj.com/d/hzoj/p/P581
-
未特判a[i]为负的情况,数组越界
-
没有判断度数不等于 \(2 \times (n-1)\) 的无解情况
-
质数数组下标从2开始循环,导致出现了 \(n \div 0\) 的情况
-
未判断仅一个点时总度数为0有一种方式的情况
- [HNOI2008]明明的烦恼
https://gxyzoj.com/d/hzoj/p/P583
-
printf("%09lld",a[i]);写作printf("%05lld",a[i]);
-
调试语句 freopen("1.txt","w",stdout);未注释
- 「一本通 6.6 练习 9」网格
https://gxyzoj.com/d/hzoj/p/P519
- ans.a[i+j]+=ans.a[i+j-1]/q写作ans.a[i+j]+=a[i+j-1]/q;
- [Sdoi2013]随机数生成器
https://gxyzoj.com/d/hzoj/p/P569
-
忽略a=1的情况
-
exgcd(ll a,ll b,ll &x,ll &y)写作exgcd(ll a,ll b,ll x,ll y)
-
忽略误解情况返回值也要加一
-
变量重名
-
\(b+a\times x_1-x_1\) 写作 \(b+a\times x_1\)
-
long long溢出
- [SDOI2011]计算器
https://gxyzoj.com/d/hzoj/p/P570
-
exgcd(ll a,ll b,ll &x,ll &y)写作exgcd(ll a,ll b,ll x,ll y)
-
未特判a=0或b=0无解的情况
-
未特判 \(0^0\) 无意义
- 守卫者的挑战
https://gxyzoj.com/d/hzoj/p/P357
-
数组开大了,RE???
-
调试未注释
- [Violet 5]列队春游
https://gxyzoj.com/d/hzoj/p/P2029
- 把统计时的循环范围写错,应为1000,写成了n
- 「NOIP2016」换教室
https://gxyzoj.com/d/hzoj/p/P380
- 用SPFA导致TLE
- [HNOI2011]XOR和路径
https://gxyzoj.com/d/hzoj/p/P383
- 未考虑重边问题,用邻接矩阵建图,应用链式前向星建图
- 「SHOI2017」分手是祝愿
https://gxyzoj.com/d/hzoj/p/P1686
- 没打大括号,导致所有点都被覆盖
- [BZOJ 2905]背单词
https://gxyzoj.com/d/hzoj/p/P433
-
多测head,edgenum未清空
-
用了普通线段树,空间出问题,要用动态开点线段树
- 找不同
https://gxyzoj.com/d/hzoj/p/3591
- 关同步流cin,scanf混用,全WA
- 幸运区间
https://gxyzoj.com/d/hzoj/p/3590
-
输出%lld打成了%d
-
没打j<n,数组越界
-
没写j=max(j,i),导致i>j,query出问题
- 珠子
https://gxyzoj.com/d/hzoj/p/3588
-
未处理了l[i]=0的情况
-
j--未注释
- [ZJOI2008]骑士
https://gxyzoj.com/d/hzoj/p/3437
-
忽略有多棵基环树的情况
-
在找环过程中统计答案,导致重复统计
- 「NOIP2018」旅行
https://gxyzoj.com/d/hzoj/p/P1203
-
变量重名
-
没有文件IO
- [IOI2008] Island
https://gxyzoj.com/d/hzoj/p/3438
-
误注释if(!fl) s[fa]=s[u]+tmp;
-
忽略答案可能是子树直径的情况
-
在统计答案时忽略有多棵树的情况,导致子树直径这一情况统计不全
-
忽略在u==st的情况下才能转移
-
数组开小
-
忽略子树内最长链可能经过根
- [hdu6854]Kcats
https://gxyzoj.com/d/hzoj/p/P2247
- 模数用的变量,导致TLE
模数用常量比变量快!!!
标签:gxyzoj,挂分,ll,tr,hzoj,https,com,日记 From: https://www.cnblogs.com/wangsiqi2010916/p/18037638