摘要: View CodeProblem :1445 ( Ride to School )Judge Status :AcceptedRunId : 11127796Language : C++Author :0902130217Code Render Status :Rendered By HDOJ C... 阅读全文
posted @ 2014-07-21 23:08 future_hero 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 思路分析(盗图一张):分析过程有如下图所示:我们可以用一个数组flag记录(1,2),(3,4)·····的公共走廊被记录的次数,每经过一次便把对应的flag[i]加1;注意边缘化处理,我们只采用一个长为205的数组处理,所以需要把数据统一到偶数中去,然后采用flag[j/2]进行存储。由于对于每一... 阅读全文
posted @ 2014-07-21 22:04 future_hero 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 一 思路分析:本题属于简单的模拟题型。需要自己抽象出模拟路线:本题需要抽象出以下模型:向右动:(x,y)->(x+1,y):s[x][y-1]=1;x++;向上动:(x,y)->(x,y+1):s[x][y]=1;y++;向下动:(x,y)->(x,y-1):s[x-1][y-1]=1;y--;向左... 阅读全文
posted @ 2014-07-21 21:18 future_hero 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 一 题意描述: Wooden Sticks Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) ... 阅读全文
posted @ 2014-07-21 18:41 future_hero 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 一 题意描述: FatMouse' Trade Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) ... 阅读全文
posted @ 2014-07-21 16:56 future_hero 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 一 题意描述:有n(1=last[j]}三 源码展示: 1 #include 2 int dp[5010],sum[5010],last[5010]; 3 int main() 4 { 5 int n; 6 scanf("%d",&n); 7 memset(sum,0,si... 阅读全文
posted @ 2014-07-21 11:44 future_hero 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 一 题意描述:给你N(1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int N = 10000 + 10; 8 const int K = 100 + 10; 9 bool f[N][... 阅读全文
posted @ 2014-07-21 10:29 future_hero 阅读(156) 评论(0) 推荐(0) 编辑