• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
magicat
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
2023年7月2日
AcWing,第110场周赛 智商药
摘要: ## [AcWing,第110场周赛 智商药](https://www.acwing.com/problem/content/5049/) UPD:2023/7/5发现维护 $dp_r = \sum_{i = l}^{r - 1}dp_i$ 直接用前缀和就可以了,不需要上树状数组和线段树。 tag: 阅读全文
posted @ 2023-07-02 17:39 magicat 阅读(38) 评论(0) 推荐(1)
AcWing,第108场周赛 拼接数组
摘要: ## [AcWing,第108场周赛 拼接数组](https://www.acwing.com/problem/content/description/5043/) 前置知识:[P1115 最大子段和](https://www.luogu.com.cn/problem/P1115) 的dp和线段树作 阅读全文
posted @ 2023-07-02 17:21 magicat 阅读(17) 评论(0) 推荐(1)
2023年6月21日
AtCoder Beginner Contest 302 ABCDEF
摘要: [AtCoder Beginner Contest 302](https://atcoder.jp/contests/abc302) ![image](https://img2023.cnblogs.com/blog/2458891/202306/2458891-20230621162021815- 阅读全文
posted @ 2023-06-21 16:20 magicat 阅读(41) 评论(0) 推荐(0)
2023年6月8日
AtCoder Beginner Contest 240 D
摘要: [**D - Strange Balls**](https://atcoder.jp/contests/abc240/tasks/abc240_d) tag:栈模拟 发现自己隔了快半年再做此题看错相同数字的球消失的条件,不是 $k \geq 2$ 而是 $k = a_i$ ~~电子竞技不需要视力~~ 阅读全文
posted @ 2023-06-08 19:29 magicat 阅读(59) 评论(0) 推荐(0)
2023年6月4日
P4942 小凯的数字
摘要: [P4942 小凯的数字](https://www.luogu.com.cn/problem/P4942 "P4942 小凯的数字") 题目和数据范围提示有 $O(1)$作法。 直接拆数字,会TLE $res \mod 9 = l(l + 1)(l + 2)...(r - 1)r \mod 9$ 找 阅读全文
posted @ 2023-06-04 16:48 magicat 阅读(46) 评论(0) 推荐(1)
AtCoder Beginner Contest 304 ABCDEF
摘要: [AtCoder Beginner Contest 304](https://atcoder.jp/contests/abc304) ![image](https://img2023.cnblogs.com/blog/2458891/202306/2458891-20230604120319565- 阅读全文
posted @ 2023-06-04 12:05 magicat 阅读(122) 评论(6) 推荐(1)
2023年5月24日
2021四川省赛
摘要: [The 2021 Sichuan Provincial Collegiate Programming Contest](https://codeforces.com/gym/103117 "The 2021 Sichuan Provincial Collegiate Programming Con 阅读全文
posted @ 2023-05-24 17:51 magicat 阅读(107) 评论(0) 推荐(0)
2023年5月12日
师妹的整理
摘要: Digital DP template #include<bits/stdc++.h> using namespace std; typedef long long ll; int a[20]; ll dp[20][state]; ll dfs(int pos, /*state变量*/, bool 阅读全文
posted @ 2023-05-12 14:40 magicat 阅读(53) 评论(5) 推荐(0)
2023年5月9日
个人模板
摘要: Math & DP & Data structure & Graph & Geometry & Game 表演者: magicat 💕 nannan 目录 Math & DP & Data structure & Graph & Geometry & GameHead快读1快读2快读3模板1模板2 阅读全文
posted @ 2023-05-09 17:12 magicat 阅读(553) 评论(1) 推荐(1)
2023年5月8日
数论分块总结
摘要: AtCoder abc230_e E - Fraction Floor Sum AtCoder abc230_e Fraction Floor Sum 求: $$\sum_{i = 1}^N ⌊\dfrac{N}{i}⌋$$ 是一个很裸的数论分块 ll ans = 0; void solve() { 阅读全文
posted @ 2023-05-08 10:32 magicat 阅读(92) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3