摘要: 感觉可以用BFS撸,然后就撸了,样例无限不过,代码能力真是弱。。#include #include #include #include #include using namespace std;const int bufsize = 128;char buf[bufsize][bufsize];st... 阅读全文
posted @ 2014-09-07 20:16 acm_roll 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 一开始觉得是数位DP,后来想不出来。 但是感觉爆搜+剪枝可以过,于是就过了。。#include #include #include using namespace std;typedef long long LL;const int maxn = 50;int lim[maxn], len;LL n... 阅读全文
posted @ 2014-09-07 18:09 acm_roll 阅读(309) 评论(7) 推荐(0) 编辑