摘要:
直接用 C + +自带的rand()又慢又容易被卡,所以推荐手写 rand(),下面的代码仅供参考 inline int Rand() { static ull r=2333;//static不能少,r的初值可以自己定 return (r*=233333)%=2147483647;//每次r乘上的数 阅读全文
posted @ 2021-07-19 15:28
bear_xin
阅读(67)
评论(0)
推荐(0)
摘要:
PART1(算法思想简介) 1.实现、dalao分析: 从入门到精通(优) 一般莫队的详细理解、为啥要分块 还得看这里(优) 回滚莫队 回滚莫队2 :就是把l定住,这样r就是递增的了 2.时间复杂度: 3.适用情况、特别优势、需要注意的点: 4.函数、变量名的解释+英文: PART2(算法各种类型( 阅读全文
posted @ 2021-07-19 15:19
bear_xin
阅读(63)
评论(0)
推荐(0)
摘要:
#include<cstdio> #include<cmath> #include<algorithm> #include<set> #include<map> #include<cstring> #include<string> #include<vector> #include<queue> # 阅读全文
posted @ 2021-07-19 14:13
bear_xin
阅读(20)
评论(0)
推荐(0)