sabo
sabo
全部文章
分类
c++(1)
因果推断(2)
技术栈(1)
机器学习(27)
程序静态分析(1)
算法实践(1)
算法总结(15)
统计(1)
自然语言处理(9)
论文笔记(13)
读书笔记(1)
面经(1)
项目学习(1)
题解(28)
归档
标签
去牛客网
登录
/
注册
Stay Forever Young
Act like a woman, think like a man
TA的专栏
48篇文章
0人订阅
算法小屋
45篇文章
2341人学习
c++
2篇文章
722人学习
大数据
1篇文章
99人学习
全部文章
(共17篇)
P1284 三角形牧场
题解 https://www.luogu.org/problemnew/solution/P1284?page=2 代码 #include<bits/stdc++.h> const int N=50; const int L=800+10; using namespace std; i...
dp
2019-09-27
0
650
cf294b 书架问题
代码: // // Created by 徐志远 on 2019-09-26. // #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using...
dp
2019-09-27
0
747
luogu p1809
代码: 分两种情况: 1. 最快带最慢的两个过去 2. 最快带次快过去,次快回,最慢带次慢过去,最快回 贪心+dp/记忆化搜索 // // Created by 徐志远 on 2019-09-26. // #include <iostream> #include <cstdio&...
dfs
贪心
dp
2019-09-27
0
584
luogu 1858
代码 //背包第K优解 //中间添加合并过程 //背包九讲 #include <cstdio> #include <cstring> using namespace std; int f[5001][51]; int k,v,n; int t[51]; int main()...
dp
2019-09-27
0
513
luogu p4095
dp双向预处理+分段查询+合并 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; #define N 1...
dp
2019-09-26
0
569
CQOI2009 叶子的颜色
题目大意:https://www.cnblogs.com/xxzh/p/9278487.html代码: #include <bits/stdc++.h> using namespace std; const int maxn = 100000 + 10; const int inf =...
dp
2019-08-14
0
623
树形dp经典问题
树的重心: 假设有unordered_map<int,vector<int>> m 表示与结点关联的结点 void dfs(int v,int fa){ son[v] = 0; int d = G[v].size(); ...
dp
2019-08-13
0
439
首页
上一页
1
2
下一页
末页