• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
nannandbk
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 6 7 8 9 10 11 12 下一页
2023年6月29日
[数论]数论函数/莫比乌斯反演
摘要: 数论函数/莫比乌斯反演 1.1积性函数 数论函数:可以认为是定义在整数上的函数。 1)积性函数定义 (a,b) = 1,f(a,b) = f(a)f(b) 2)积性函数性质 对于积性函数\(f\),是被所有\(p^e\)处的值决定的,即积性函数的值完全由素数的幂次决定 a = 1,f(b) = f( 阅读全文
posted @ 2023-06-29 22:02 nannandbk 阅读(126) 评论(0) 推荐(3)
2023年6月28日
AtCoder Beginner Contest 280 ABCDE
摘要: # [AtCoder Beginner Contest 280](https://atcoder.jp/contests/abc280) ## **A - Pawn on a Grid** ### Problem Statement 题意:给你$N$行$M$列的网格,问你有多少个# ### Solu 阅读全文
posted @ 2023-06-28 22:27 nannandbk 阅读(37) 评论(0) 推荐(2)
[数据结构]笛卡尔树、ST表、带权并查集
摘要: # Cartesian tree(笛卡尔树) ## 1.概念 比如拿最小的当根建树,中序遍历是原数组 ![image](https://img2023.cnblogs.com/blog/3214093/202306/3214093-20230628214110647-453940263.png) 笛 阅读全文
posted @ 2023-06-28 21:44 nannandbk 阅读(124) 评论(0) 推荐(3)
2023年6月26日
AtCoder Beginner Contest 307 ABCDE
摘要: # [AtCoder Beginner Contest 307](https://atcoder.jp/contests/abc307) ## **A - Weekly Records** ### Problem Statement 题意:告诉你有几个礼拜,问你每个礼拜走的路程和。 ### Solu 阅读全文
posted @ 2023-06-26 09:07 nannandbk 阅读(118) 评论(0) 推荐(3)
AtCoder Beginner Contest 267 ABCDE
摘要: # [AtCoder Beginner Contest 267](https://atcoder.jp/contests/abc267) ## **A - Saturday** ### Problem Statement 题意:问你给定的天到礼拜六还要几天。 思路:直接算。 ```c++ #incl 阅读全文
posted @ 2023-06-26 08:39 nannandbk 阅读(58) 评论(0) 推荐(2)
2023年6月25日
[数据结构]Segment tree(线段树)
摘要: # Segment tree(线段树) ## 1.线段树的结构和思想 ### 线段树基本结构 ![image](https://img2023.cnblogs.com/blog/3214093/202307/3214093-20230711125602863-1057532744.png) ### 阅读全文
posted @ 2023-06-25 20:59 nannandbk 阅读(66) 评论(0) 推荐(3)
[数据结构]Binary Indexed Trees(树状数组)
摘要: # Binary Indexed Trees(树状数组) ## 1.lowbit **lowbit(x)**是x的二进制表达式中最低位的1所对应的值。比如,6的二进制是110,所以lowbit(6)=2。 **lowbit(x) = x&(-x)** ![image](https://img2023 阅读全文
posted @ 2023-06-25 20:58 nannandbk 阅读(44) 评论(0) 推荐(1)
[数据结构]scanning line(扫描线)
摘要: # scanning line(扫描线) ## 1.1扫描线的思想以及在几何问题上的应用(eg1,3) ### [二维数点](http://oj.daimayuan.top/course/15/problem/686) 平面上有n个点(xi,yi)。 回答q个询问,每个询问给定一个矩形[X1,X2] 阅读全文
posted @ 2023-06-25 20:58 nannandbk 阅读(87) 评论(0) 推荐(1)
2023年6月20日
AtCoder Beginner Contest 303 ABCDE
摘要: # [AtCoder Beginner Contest 303](https://atcoder.jp/contests/abc303) ## A - Similar String ### Problem Statement 题意:给你两个串判断是不是相似的。 相似:不一样的字符中1和l相似,0和o 阅读全文
posted @ 2023-06-20 00:40 nannandbk 阅读(45) 评论(0) 推荐(2)
2023年6月17日
[数论]组合数取模
摘要: # Combinatorial Number ## 一、[组合数取模1:](http://oj.daimayuan.top/course/12/problem/524) #### 例题:回答T组询问,输出$C_{n}^{m} \bmod 10^9+7$的值。 $C_{n}^{m} = \dfrac{ 阅读全文
posted @ 2023-06-17 09:07 nannandbk 阅读(856) 评论(0) 推荐(1)
上一页 1 ··· 6 7 8 9 10 11 12 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3