摘要: 水水更健康#include #include #include #include #include using namespace std;const int N=50100;struct COW{ int f,s,d;}cows[N];bool cmp1(COW a,COW b){ if(a.f>... 阅读全文
posted @ 2015-02-23 10:56 chenjunjie1994 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 我不明白为何遇到这种水我竟然要犹豫一下。。。。等会要去走亲戚,刷个水玩玩#include #include #include #include using namespace std;long long a[10010];int main(){ int n; while(~scanf("%d",&n... 阅读全文
posted @ 2015-02-23 10:42 chenjunjie1994 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 记忆化搜索即可,设DP[I][J]为可到达的最大步数。输出时用了一种较笨拙的方法,还有一种方法是使用最长上升子序列的方式,挺好,先排序,这让我想起上次BESTCODER的一题#include #include #include #include #include using namespace st... 阅读全文
posted @ 2015-02-23 10:21 chenjunjie1994 阅读(170) 评论(0) 推荐(0) 编辑