![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hdu
wjjayo
这个作者很懒,什么都没留下…
展开
-
hdu 1181
<br />dfs<br />#include <iostream>#include <cstdio>#include <cstring>#include <cstdlib>#include <cmath>using namespace std ;const int maxn = 1000 + 10 ;char s[maxn] , e[maxn] ;char str[maxn] ;int cnt , flag , vis[maxn] ;void dfs原创 2011-03-06 19:44:00 · 1107 阅读 · 0 评论 -
hdu 1166
看起来是要模拟,但是如果用朴素数据结构(随机存取数组)的话肯定会超时,所以选择了树状数组#include #include #include #include #include using namespace std ;const int maxn = 50000+1;int ncase , tree[maxn] , n ;void init(){......原创 2011-03-22 20:11:00 · 633 阅读 · 0 评论