![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
文章平均质量分 62
QQQQQHY
Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.
—Tanenbaum, Andrew S. (1989).
展开
-
1959 拔河比赛[DP][随机化贪心※]
可达性DP#include<iostream>#include<cstdio>#include<algorithm>using namespace std;int n,k;int a[12341],sum,mi=10000000;bool f[112][46000]; int main(){ cin>>n; for(int i=1;i<=n;i++){原创 2016-10-18 13:52:51 · 460 阅读 · 0 评论 -
2204 母舰[经典贪心]
2204 母舰 时间限制: 1 s 空间限制: 32000 KB 题目等级 : 黄金 Gold 题目描述 Description在小A的星际大战游戏中,一艘强力的母舰往往决定了一场战争的胜负。一艘母舰的攻击力是普通的MA(Mobile Armor)无法比较的。 对于一艘母舰而言,它是由若干个攻击系统和若干个防御系统组成的。两艘母舰对决时,一艘母舰会选择用不同的攻击系统去攻击对面母舰的防御原创 2016-10-30 19:02:23 · 351 阅读 · 0 评论