摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4417你妹妹的 cin cout scanf printf.是差了好远呀,cin cout 会wa但scanf printf就ac了。。了解了eaual_range()的神奇操作。。做法就是线段树,vector很强大。。View Code #include<iostream>#include<cstdio>#include<algorithm>#include<vector>#define lson l,m,root<<1#define rson m 阅读全文
posted @ 2012-09-24 20:05 一把刷子 阅读(174) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4414sb题啊,我wa了好久,你妹妹。。就是暴力枚举,然后我的方法是在检查每一位的时候检查他的相邻位,是否符合条件,队友的方法是后面来次dfs、、其实都一样。。View Code #include<iostream>#include<stdio.h>#include<string.h>#include<algorithm>using namespace std;char map[100][100];void init(int len){ for(int i=0; 阅读全文
posted @ 2012-09-24 18:43 一把刷子 阅读(132) 评论(0) 推荐(0) 编辑