
其他 贪心
文章平均质量分 87
Albert__s
一直奔跑总会有出头之日。
展开
-
UVa 1368 DNA Consensus String 【字符串】【贪心】
题目看这里~题意:懒得写了 想看的话可以找紫书58页习题3-7 或者 参考别人的博客(刚开始还以为是在给定的DNA中选出一个,但看样例怎么也不动,再看时才发现是构造一个新的DNA序列这也没什么好讲的 认真读题然后注意一下小细节(已用//注释出来AC代码:#include #include #include #include #include using namespace原创 2017-02-03 13:32:02 · 340 阅读 · 0 评论 -
CodeForces 810B Summer sell-off 【贪心】【排序】
题目链接:Codeforces Round #415 (Div. 2) BDescription: Summer holidays! Someone is going on trips, someone is visiting grandparents, but someone is trying to get a part-time job. This summer Noora decided原创 2017-05-22 11:04:57 · 1051 阅读 · 0 评论 -
CodeForces 864D Make a Permutation! 【贪心】【模拟】
题目链接 : Codeforces Round #436 (Div. 2) DDescription:Ivan has an array consisting of n elements. Each of the elements is an integer from 1 to n.Recently Ivan learned about permutations and their lexicogr原创 2017-09-27 22:58:42 · 527 阅读 · 0 评论