
acm_贪心和DP
文章平均质量分 68
小七和小墨
http://blog.youkuaiyun.com/ccsu_cherish
http://blog.youkuaiyun.com/shahdza/article/details/6632538
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj3617 Best Cow Line 贪心
FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line and herds them past the judges. The contest or原创 2013-09-03 17:06:58 · 722 阅读 · 0 评论 -
poj3176 Cow Bowling DP
The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling-pin-like triangle like this: …… 题意:给你一个非负整数组成的数字三原创 2013-09-04 12:06:56 · 705 阅读 · 0 评论 -
hdu1159 Common Subsequence DP
题解:最长公共子串。题意就不说了。为何 a[0]='#',b[0]='# 不加就不过呢- -。。' 为何。 #include #include #include #include #include #include using namespace std; #define LL long long #define maxn 100003 char a[1005],b[1005]; int d原创 2013-12-13 21:13:21 · 492 阅读 · 0 评论