• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
小颜_CodeWorld
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

文章分类 -  ACM

 
POJ 3468
摘要:线段树---->成段更新虽然对代码有调试,理解,但是可能注释也不一定对。。总之就是线段树学的太水了。。递归思想也不太清楚啊。哭死PS:大牛勿喷,弱菜贴代码只是为了以后查看 T T 1 //该题与hdu1166的敌兵布阵不同在于,该题是成段更新,而敌兵布阵是单点更新 2 #include <iostream> 3 #include <cstdio> 4 #include <cstring> 5 #include <algorithm> 6 #define lmax x<<1 7 #define rmax x<<1|1 阅读全文
posted @ 2013-06-18 22:58 进击de_小颜 阅读(92) 评论(0) 推荐(0)
线段树完整版(转载)
摘要:转载出处:http://www.notonlysuccess.com/index.php/segment-tree-complete/ 阅读全文
posted @ 2013-06-16 14:01 进击de_小颜 阅读(51) 评论(0) 推荐(0)
POJ 1101
摘要:搜索题: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <queue> 5 #include <algorithm> 6 using namespace std; 7 8 int n, m; 9 char MAP[550][550]; 10 int turn[550][550]; //记录每个点的最少转弯次数 11 int dir[4][2] = {{-1, 0},{1, 0},{0, 1},{0, -1}}; 12 int x_1, 阅读全文
posted @ 2013-06-16 13:49 进击de_小颜 阅读(179) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3