雕刻时光

just do it……nothing impossible
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年3月12日

摘要: 3个小时,A了两水题,一个因为没初始wa了6次都是自己平时马马虎虎平时就应该以比赛来看待,不要还没想清楚就提交……这段时间就锻炼正确率!!!一旦有错误,要自己独立思考,不要求助网络 阅读全文

posted @ 2011-03-12 22:30 huhuuu 阅读(126) 评论(0) 推荐(0) 编辑

摘要: 简单dfs搜索用全局变量max随时记录当时搜到的面积最大即可View Code #include<stdio.h>bool hash[109][109];int all,max;int n,m;int f[4][2]={0,-1,-1,0,0,1,1,0};void dfs(int x,int y){ int i,x1,y1; for(i=0;i<4;i++) { x1=x+f[i][0]; y1=y+f[i][1]; if(x1>=1&&x1<=n&&y1>=1&&y1<=m&&hash 阅读全文

posted @ 2011-03-12 15:04 huhuuu 阅读(206) 评论(0) 推荐(0) 编辑