上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 50 下一页
摘要: problemsolutioncodes#includeusing namespace std;int n, m, a[355], b[5], dp[40][40][40][40];int main(){ cin>>n>>m; for(int i = 0;... 阅读全文
posted @ 2018-05-22 13:24 gwj1139177410 阅读(123) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes//STL大法好#include#include#includeusing namespace std;queueq;sets;int main(){ int m, n, ans = 0; cin>>m>>n; ... 阅读全文
posted @ 2018-05-22 13:21 gwj1139177410 阅读(94) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes//(如果你玩数独会怎么填呢)......启发式:把能确定的填上#includeusing namespace std;const int score[10][10]={ {0,0,0,0,0,0,0,0,0,0}, ... 阅读全文
posted @ 2018-05-22 13:18 gwj1139177410 阅读(187) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes#include#include#includeusing namespace std;mapma, mm;string ans;int main(){ bool flag = true; string a, b; ... 阅读全文
posted @ 2018-05-22 13:15 gwj1139177410 阅读(95) 评论(0) 推荐(0) 编辑
摘要: problem在一个矩阵内找出两条从(1,1)到(m,n)的路径(一条从1,1 到 m,n 一条 从m, n到1,1),并且路径之上的权值之和最大。solution状态:f[i][j][k][l],当一张纸条传到i,j 另一张传到k,l时路径上权值的最大值;codes... 阅读全文
posted @ 2018-05-22 13:13 gwj1139177410 阅读(78) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes//每行独立区间DP, 贪心反例->某行像这样,4 1 1 1 1 1 233 3 3//2^80数据, 所以记得高精.#include#include#include#include#includeusing namespac... 阅读全文
posted @ 2018-05-22 13:10 gwj1139177410 阅读(133) 评论(0) 推荐(0) 编辑
摘要: problem给定 n 颗环形串起来的珍珠,每个珍珠有头标记 hi 和尾标记 ti,按照任意顺序合并相邻珍珠 u, v,会带来 hu ∗ tu ∗ tv 的收益,并且会结合成新的珍珠 w,其中 hw = hu, tw = tv。保证相邻珍珠同侧标记相同。求最大收益。 ... 阅读全文
posted @ 2018-05-22 13:06 gwj1139177410 阅读(122) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes#includeusing namespace std;int h[110],f[110],f2[110], ans;int main(){ int n; cin>>n; for(int i = 1; i >h[i]... 阅读全文
posted @ 2018-05-22 12:57 gwj1139177410 阅读(171) 评论(0) 推荐(0) 编辑
摘要: problemtan90solutiontan90codes#includeusing namespace std;int main(){ int flag = 0, t = 0, res = 0; for(int i = 0; i >x; ... 阅读全文
posted @ 2018-05-22 12:54 gwj1139177410 阅读(150) 评论(0) 推荐(0) 编辑
摘要: problem占坑待填solution占坑待填???codes//交前%一下, 送你80分#include#includeusing namespace std;const int maxn = 30000010;#define mod 23301int l, s, ... 阅读全文
posted @ 2018-05-21 21:48 gwj1139177410 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 50 下一页
选择