afoed 11.29
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《十年 OI 一场空,不开 long long 见祖宗》回复:
陪一个T2常数大了被卡了100->80
在讨论《csp/noip考场上邻接表能用auto吗》回复:
@[China_U_19641016](luogu://user/1304502)@[jokersen](luogu://user/1602807)@[hanciyang](luogu://user/927003) thanks;
rt,本人写邻接表习惯了用 ```cpp for(auto i:e[x]); ``` 来遍历边,但是最近在学校训练发现学校的破机子版本太低编译失败,故来谷里发帖求助
在讨论《Algo Beat Contest 002.5 赛后总结帖》回复:
hp
在讨论《关于李超线段树优化dp和斜率优化dp》回复:
/thx所有人的解答
在讨论《「TFXOI」Round #3 赛时答疑帖》回复:
hp
两个优化好像都是把转移变成y=kx+b的形式 能不能说李超线段树能优化的dp都能用斜率优化解决 如[P4655 [CEOI 2017] Building Bridges](https://www.luogu.com.cn/problem/P4655)
在讨论《【LGR-237-Div.3】洛谷基础赛 #25 赛时答疑帖》回复:
qp
在讨论《TLE80pts求卡常》回复:
@[Henry2012](luogu://user/745332) N的值改为4000 ```cpp const int N=4007,M=12007,inf=0x3f3f3f3f3f3f3f3f; ``` 应该是小规模数组越界所以没有RE就TLE了
在讨论《平衡树求条》回复:
帮你改完了 ```cpp #include using namespace std; #define int long long #define _ 15000005 int n,a[_],rt[_],m; struct BIT { long long tr[_]; void add(int x,int op) {fo…
在讨论《平衡树求条》回复:
@[Blanc_min](luogu://user/535996) 开long long ```cpp #define ll int//这是什么 ```
在讨论《80求调》回复:
@[xzx0731](luogu://user/1372405) 1.要开long long 2.你无法保证a[i]大于多余的糖,要判断一下,大于直接减,小于就减到0 ```cpp #include #define int long long using namespace std; signed main() { i…
在讨论《「CyOI」Round 1 赛后总结帖》回复:
qp
在讨论《全部RE,求调,必关》回复:
@[8__OwO__8](luogu://user/1274662) ```cpp int dfs(int x) 改成 void dfs(int x) ``` dfs类型是int没有返回值就会re
所以是STL bitset快还是手写bitset快 [P11831 [省选联考 2025] 追忆](https://www.luogu.com.cn/problem/P11831) 这题为什么我手写bitset比STL bitset快了很多 deekseep给出的解释是 n≤1e5,把a[i]离散化
在讨论《求调!必关!!!小蒟蒻膜拜大佬~~~》回复:
@[stargyh](luogu://user/1339663) 第22行加一句continue; ```cpp if(way==0){ to+=pr; coupons.push({pr, ti}); continue; } ```
在讨论《(玄学)小问题》回复:
@[complete_binary_tree](luogu://user/683859)@[细数繁星](luogu://user/824363)thk,是数组越界了,题里n≤501没看到
在讨论《(玄学)小问题》回复:
```cpp #include using namespace std; const int N=501; int n,a[N],now,maxn=0,cnt[10],ans=0,c[4]; short dp[N][N][N]; void Max(short &x,short y){x=x>y?x:y;} int ma…
[P4749 [CERC2017] Kitchen Knobs](https://www.luogu.com.cn/problem/P4749) 如果在定义数组时这么写 ```cpp int n,a[N],maxn=0,cnt[10],ans=0,c[4],p[N][8]; ``` 只能得5分 https://www.…
#5测试点数据在本地测是全对的, 评测时候就wa了 #5测试点数据 ``` 50 1 577793 1 408221 1 880861 2 408221 1 460353 1 223489 6 577713 4 2 5 889905 2 880861 1 100033 1 73956 1 22575 5 583761…
在讨论《求解答输出0》回复:
@[liuxy1234](luogu://user/377842) thx
在讨论《求解答输出0》回复:
没用Lucas定理
组合数+逆元 在#1测试点中10个输出有7个正确,剩余3个都输出0 ```cpp #include #define ll long long using namespace std; ll n,m,p; ll qp(ll a,ll b){ int res=1; while (b){ if (b%2)res=res*a%…