动态规划
今天也吃瓜
空空
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
中国计量大学现代科技学院第四届“中竞杯”程序设计校赛(同步赛)F爬山
题目来源:点击这里 #include <cstdio> #include <iostream> #include <cstring> #include <algorithm> typedef long long ll; ll yinin[1000+5][1000+5]; ll a[105],n,m,tot,k,kk; ll total=0; ll dp[100*100+5],tip[1000+5],sum[1000+5]; ll sum2[1000+5]; u原创 2020-12-05 16:48:13 · 301 阅读 · 0 评论 -
区间dp:石子合并
例题:添加链接描述 #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #include<cmath> #include<cstring> const int inf=1e9; using namespace std; int n; int a[210]; int sum[210]={0}; int maxx=-inf; int minx=i原创 2020-06-16 15:58:57 · 129 阅读 · 0 评论
分享