2015年8月2日

HDOJ1073(gets 应用)

摘要: 练习操作字符串的好题。#include#include#includeusing namespace std;const int SIZE=5000+16;void fun_in(char s[]){ char a[SIZE]={'\0'}; while(scanf("%s",a),st... 阅读全文

posted @ 2015-08-02 17:18 vCoders 阅读(184) 评论(0) 推荐(0)

HDOJ(1069)最长下降子序列

摘要: 每个箱子可有3种叠加方式,所以有3*n个箱子。将箱子按长度由大到小排序,有求箱子按宽度的最长下降子序列的高度之和即可。#include#include#includeusing namespace std;#define MAX(a,b) (a>b)?a:b#define MIN(a,b) (a>b... 阅读全文

posted @ 2015-08-02 10:26 vCoders 阅读(130) 评论(0) 推荐(0)

导航