摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1274思路: 找到匹配的区间 之后dfs#include#include#include#include#includeusing namespace std;char str[300];void dfs(int ... 阅读全文
posted @ 2015-01-22 15:55 sola94 阅读(147) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/494/A题意 有一串字符串由 ( ) # 组成 #代表若干个 ) 问#具体为多少时可以使每个( 都对应一个 )思路 由于可以有多种方式组合 可以默认前 cnt-1 个 #号 与它前一个 ( 匹配 之后... 阅读全文
posted @ 2015-01-22 14:42 sola94 阅读(152) 评论(0) 推荐(0) 编辑