会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
November
こっそりと閉じた瞼 灯りを探している
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
2020年9月5日
AHOI2009 中国象棋 题解
摘要: https://www.luogu.com.cn/problem/P2051 在棋盘上摆若干个炮,使得炮之间不攻击,求方案个数 \(\bmod 9999973\) 的值。 考虑 DP,设 \(dp_{i,j,k}\) 表示前 \(i\) 行有 \(j\) 列放了一个炮,有 \(k\) 行放了两个炮。
阅读全文
posted @ 2020-09-05 22:11 时一月
阅读(152)
评论(0)
推荐(0)
2020年8月6日
SCOI2003 字符串折叠 & NEERC2002 Folding 题解
摘要: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=693 http://poj.org/problem?id=2176 https://zoj.
阅读全文
posted @ 2020-08-06 17:09 时一月
阅读(280)
评论(0)
推荐(1)
2020年7月31日
Solution - 「Vjios 1617」超级教主
摘要: https://vijos.org/p/1617 单调队列优化 DP。 设 \(dp_i\) 表示跳完前 \(i\) 个能量球所需的花费。 可得:\(dp_i=\max(dp_k-100\times x+\sum^{i}_{j=k+1} h_j)\)。 对此 DP 柿子进行化简: \(dp_i=\m
阅读全文
posted @ 2020-07-31 17:14 时一月
阅读(158)
评论(0)
推荐(0)
Solution Set - Codeforces Round #652
摘要: https://codeforces.com/contest/1369 A 猜结论,一开始盲猜 \(n \bmod 2=0\),然后 WA 了,画了一画,改成 \(n \bmod 4=0\),然后 A 了。 时间复杂度 \(O(t)\)。 #include<bits/stdc++.h> using
阅读全文
posted @ 2020-07-31 11:28 时一月
阅读(136)
评论(0)
推荐(0)
2020年7月30日
Solution Set -「Local」2020.7.29 测试
该文被密码保护。
阅读全文
posted @ 2020-07-30 11:04 时一月
阅读(61)
评论(0)
推荐(0)
2020年7月28日
Solution Set -「Local」2020.7.27 测试
该文被密码保护。
阅读全文
posted @ 2020-07-28 10:24 时一月
阅读(113)
评论(0)
推荐(0)
2020年7月25日
Solution Set - Codeforces Round #655
摘要: https://codeforces.com/contest/1372 A 众所周知,\(1+1\neq 1\)。 所以输出 \(n\) 个 \(1\) 即可。 时间复杂度 \(O(tn)\)。 #include <bits/stdc++.h> using namespace std; int t;
阅读全文
posted @ 2020-07-25 13:57 时一月
阅读(180)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
公告