会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
towboat
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
32
33
34
35
36
37
38
39
40
···
54
下一页
2022年12月21日
杂题 记录
摘要: //
阅读全文
posted @ 2022-12-21 11:17 towboat
阅读(53)
评论(0)
推荐(0)
图论 记录
摘要: //
阅读全文
posted @ 2022-12-21 11:17 towboat
阅读(22)
评论(0)
推荐(0)
2022年12月19日
字符串 记录
摘要: https://vjudge.net/problem/HDU-3336 http://ybt.ssoier.cn:8088/problem_show.php?pid=1455 给出两个字符串S,T, 求 T在S中出现多少次 hash或kmp http://ybt.ssoier.cn:8088/pro
阅读全文
posted @ 2022-12-19 20:12 towboat
阅读(42)
评论(0)
推荐(0)
2022年12月16日
dp 记录
摘要: https://ac.nowcoder.com/acm/problem/21303 https://ac.nowcoder.com/acm/problem/21314 https://ac.nowcoder.com/acm/problem/21186
阅读全文
posted @ 2022-12-16 18:16 towboat
阅读(34)
评论(0)
推荐(0)
2022年12月15日
数学 记录
摘要: http://ybt.ssoier.cn:8088/problem_show.php?pid=1623 http://ybt.ssoier.cn:8088/problem_show.php?pid=1621 http://ybt.ssoier.cn:8088/problem_show.php?pid
阅读全文
posted @ 2022-12-15 17:00 towboat
阅读(31)
评论(0)
推荐(0)
2022年12月14日
求质因数
摘要: 1. 求一个数的质因数 #include <iostream> #include <algorithm> using namespace std; const int N =200; int tot,fac[N]; void getFac(int x){ tot=0; for(int i=2;i*i
阅读全文
posted @ 2022-12-14 21:19 towboat
阅读(45)
评论(0)
推荐(0)
2022年12月7日
多重背包二进制优化
摘要: 复杂度 n^2 * logn 类似倍增, 将 num[i] 拆为 1+2+4+ .... ,这样取物品i 时,可以一次多取一些 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const
阅读全文
posted @ 2022-12-07 15:44 towboat
阅读(59)
评论(0)
推荐(0)
2022年12月4日
待补
摘要: 涉及换根的观察 https://vjudge.net/problem/%E9%BB%91%E6%9A%97%E7%88%86%E7%82%B8-3083
阅读全文
posted @ 2022-12-04 18:23 towboat
阅读(53)
评论(0)
推荐(0)
2022年12月3日
acwing 280. 陪审团
摘要: 第 i个人的得分分别记为 a[i] 和 b[i]m个人必须满足:辩方总分S(a) 和控方总分 S(b) 的差的绝对值最小如果选择方法不唯一,那么再从中选择辨控双方总分之和最大的方案。求最终的陪审团获得的辩方总分 D 控方总分 P, 以及陪审团人选的编号 吧这个绝对值的差的和作为状态 f[ i ] [
阅读全文
posted @ 2022-12-03 18:50 towboat
阅读(48)
评论(0)
推荐(0)
275. 传纸条
摘要: #include <iostream> using namespace std ; const int N=51; int n,m,a[N][N],f[N][N][N][N]; int MAX(int a,int b,int c,int d){ if(a<b) a=b; if(c<d) c=d; i
阅读全文
posted @ 2022-12-03 13:29 towboat
阅读(52)
评论(0)
推荐(0)
上一页
1
···
32
33
34
35
36
37
38
39
40
···
54
下一页
公告