2013年8月23日
摘要: 题目链接。分析:这题从早上调到现在。也不算太麻烦,细节吧。每个数字都只有两种状态,加入前一序列和不加入前一序列。DFS枚举。#include #include #include #include #include #include #include #include using namespace std;int ord[10], len, ans_a[10], tar, max_ans, cnt;char s[10];bool flag;void dfs(int cur_s, int cur_t, int cur) { if(cur_s+cur_t > tar) { //... 阅读全文
posted @ 2013-08-23 15:05 Still_Raining 阅读(200) 评论(0) 推荐(0) 编辑