会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
月落乌啼算钱
首页
新随笔
联系
管理
2022年10月20日
CPL#3
该文被密码保护。
阅读全文
posted @ 2022-10-20 10:06 月落乌啼算钱
阅读(5)
评论(0)
推荐(0)
2021年6月26日
基础dp思想浅谈
该文被密码保护。
阅读全文
posted @ 2021-06-26 19:08 月落乌啼算钱
阅读(0)
评论(0)
推荐(0)
2020年12月3日
CF623B Array GCD
摘要: CF623B Array GCD 题目大意: 给一个长为$n$的序列$v$.有两操作如下: 一:删除一段长为$m(m<n)$的连续子序列,费用为$m*a$.操作一只能执行一次. 二:给一个数$+1/-1$,费用为$b$.每个数只能执行一次操作二. 求使所有数最大公约数大于$1$的最小代价. 题解:
阅读全文
posted @ 2020-12-03 20:09 月落乌啼算钱
阅读(115)
评论(0)
推荐(0)
2020年10月19日
[HAOI2011]Problem b
摘要: description 求 \[ \sum_{i=1}^{n} \sum_{j=1}^{m}[gcd(i, j)==k] \] solution \[ \begin{align} \sum_{i=1}^{n}\sum_{j=1}^{m}[gcd(i, j)==k] &= \sum_{i=1}^{\l
阅读全文
posted @ 2020-10-19 15:24 月落乌啼算钱
阅读(62)
评论(0)
推荐(0)
2020年10月16日
mlg的多项式全家桶
摘要: 引入 首先,我们有这样的两个式子:$$快速傅里叶卷积式: F(\omega_{n}^{k+n/2})=FL(\omega_{n/2}^{k})+\omega_{n}^{k}FR(\omega_{n/2}^{k})$$ $$牛顿迭代式:已知G(F(x))=0,则F(x)=F_{0}(x)-\frac{
阅读全文
posted @ 2020-10-16 16:57 月落乌啼算钱
阅读(126)
评论(3)
推荐(2)
2020年10月4日
the problems that are very cool
该文被密码保护。
阅读全文
posted @ 2020-10-04 19:26 月落乌啼算钱
阅读(0)
评论(0)
推荐(0)
2020年9月19日
P1055 ISBN号码
摘要: #include<iostream> using namespace std; int a; string s; int ans, tot; int main(){ cin>>s; for(int i=0; i<s.length()-1; i++){ if(s[i]=='-') continue;
阅读全文
posted @ 2020-09-19 17:13 月落乌啼算钱
阅读(87)
评论(0)
推荐(0)
2020年8月20日
可持久化并查集
摘要: solution 可持久化数据结构是在原数据结构的基础上增加维护历史版本的功能。但可持久化并查集的具体思路是利用主席树维护不同版本的每个节点的父节点.如果并查集结构是链式,用按秩合并会导致单次查询复杂度为$n\log n$,于是我们可以启发式合并,将最大深度较小的集合合并到较大的那一个.剩下的,暴力
阅读全文
posted @ 2020-08-20 16:36 月落乌啼算钱
阅读(115)
评论(0)
推荐(0)
2020年8月19日
[SDOI2012] Longge 的问题——数学题
摘要: description 求$\sum_^ \gcd(i,n)$ 设$f(k)=\sum_{gcd(i,n)==k} 1$,则有$\sum_^\gcd(i,n)=\sum_{d|n}d\cdot f(d)$,现欲求函数$f(k)$. 可以发现,\(f(k)=\sum_{i=1}^{n}[\gcd(i,
阅读全文
posted @ 2020-08-19 14:50 月落乌啼算钱
阅读(109)
评论(0)
推荐(0)
2020年8月15日
轮状病毒
摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<algorithm> #include<queue> #include<map> #include<set
阅读全文
posted @ 2020-08-15 08:16 月落乌啼算钱
阅读(131)
评论(0)
推荐(0)
下一页
公告