贪心
Amo-
某弱校 垃圾 ,,
展开
-
F. MST Unification codeforces 1108F
传送门:https://codeforces.com/contest/1108/problem/F F. MST Unification time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are giv...原创 2019-03-05 17:26:20 · 178 阅读 · 0 评论 -
codeforces 777E 单调栈 greedy
传送门:https://codeforces.com/problemset/problem/777/E E. Hanoi Factory time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Of course yo...原创 2019-03-04 11:54:59 · 324 阅读 · 0 评论 -
51nod1191 消灭兔子 2019/03/20
1191 消灭兔子 1 秒 131,072 KB 40 分 4 级题 有N只兔子,每只有一个血量B[i],需要用箭杀死免子。有M种不同类型的箭可以选择,每种箭对兔子的伤害值分别为D[i],价格为P[i](1 <= i <= M)。假设每种箭只能使用一次,每只免子也只能被射一次,计算要消灭地图上的所有兔子最少需要多少Q币。如不能杀死所有兔子,请输出No S...原创 2019-03-20 15:57:59 · 137 阅读 · 0 评论 -
Codeforces Round #547 (Div. 3) cf 1141 F1/F2 . Same Sum Blocks (Hard)
F2. Same Sum Blocks (Hard) time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output This problem is given in two editions, which differ ex...原创 2019-03-20 21:28:55 · 163 阅读 · 0 评论 -
洛谷 P1484 种树
题目描述 cyrcyr今天在种树,他在一条直线上挖了n个坑。这n个坑都可以种树,但为了保证每一棵树都有充足的养料,cyrcyr不会在相邻的两个坑中种树。而且由于cyrcyr的树种不够,他至多会种k棵树。假设cyrcyr有某种神能力,能预知自己在某个坑种树的获利会是多少(可能为负),请你帮助他计算出他的最大获利。 输入输出格式 输入格式: 第一行,两个正整数n,k。 第二行,n个正整...原创 2019-03-27 18:00:17 · 175 阅读 · 0 评论 -
Codeforces Round #552 (Div. 3) A B C D E F G (暴力,dp,模拟)
题目链接:https://codeforces.com/contest/1154 A:Restoring Three Numbers B:Make Them Equal C:Gourmet Cat D:Walking Robot E:Two Teams F:Shovels Shop G:Minimum Possible LCM A:给定b-a、a+c、b+c、a+b+c的值求ab...原创 2019-04-17 03:02:22 · 279 阅读 · 0 评论 -
2019年ICPC浙江省省赛 (solve9/13)
A题看博客链接:https://blog.csdn.net/qq_38185591/article/details/90031185 B: Element Swapping (数学 + 思维) Time Limit:1 Second Memory Limit:65536 KB DreamGrid has an integer sequenceand he likes it ...原创 2019-05-02 20:11:32 · 357 阅读 · 0 评论 -
Avito Cool Challenge 2018 E. Missing Numbers(cf1081E)
E. Missing Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Chouti is working on a strange math problem. There was a sequ...原创 2019-05-29 11:52:59 · 169 阅读 · 0 评论