摘要:
#include#include#include#define N 20using namespace std;int main(){ stackS; int n, i, j, k, a[N]; char s1[N], s2[N]; while(scanf("%d", &n)... 阅读全文
posted @ 2015-05-07 17:59
午夜阳光~
阅读(132)
评论(0)
推荐(0)
摘要:
#include#include#include#include#define N 10using namespace std;void Q(int n){ int m; char s[N]; queueQ; while(n--) { scanf("%s"... 阅读全文
posted @ 2015-05-07 16:51
午夜阳光~
阅读(187)
评论(0)
推荐(0)
摘要:
背包模板(01背包,完全背包,多重背包)一、01背包:#define N ..///N这个值是根据具体的题目来定的int v; ///v为总的容量int dp[N];void ZeroOnePack(int cost,int weight){ for(int j=v;j>=cost;j--... 阅读全文
posted @ 2015-05-07 15:59
午夜阳光~
阅读(356)
评论(0)
推荐(0)

浙公网安备 33010602011771号