摘要: 矩阵连乘核心代码1 for(int i=0;imax) 34 max=tmp; 35 if(tmpmax) 38 max=tmp; 39 if(tmpmax) 42 max=tmp; 43 if(tmpmax) 46 ... 阅读全文
posted @ 2014-08-13 23:11 daydaycode 阅读(974) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1082Time Limit:1000MSMemory Limit:10000KTotal Submissions:4820Accepted:2273DescriptionAdam and Eve enter this year's ACM Int... 阅读全文
posted @ 2014-08-13 09:51 daydaycode 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThere is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of energy... 阅读全文
posted @ 2014-08-12 20:34 daydaycode 阅读(564) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionFSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by bu... 阅读全文
posted @ 2014-08-12 19:51 daydaycode 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 我们需要把一块石头平稳的从地板上拿起来。石头的底面是多边形且各个部分的高度都一样,我们需要找出石头的重心。input测试案例 T;每组第一行给出N,表示定点数。接下来N行,每行连个数,表示坐标。定点按顺时针或逆时针给出。output 重心坐标。两个数中间一个空格,每个数保留两位小数。思路 把多变... 阅读全文
posted @ 2014-08-12 11:03 daydaycode 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 把N个建筑正投影到一个竖直平面上,给出N个建筑的左右坐标值和高度,计算阴影部分的面积。input 第一行建筑物的个数,接下来N行,每行给出三个数, 左右坐标值 和高度。其中1,r,h《=十亿.output 面积。 1 #include"iostream" 2 #include"cstdio" 3 ... 阅读全文
posted @ 2014-08-12 09:51 daydaycode 阅读(269) 评论(0) 推荐(0) 编辑
摘要: hdu 4908 BestcoderProblem DescriptionMr Potato is a coder.Mr Potato is the BestCoder.One night, an amazing sequence appeared in his dream. Length o... 阅读全文
posted @ 2014-08-11 17:02 daydaycode 阅读(127) 评论(0) 推荐(0) 编辑
摘要: HDU 4932 BestcoderProblem DescriptionThere are N point on X-axis . Miaomiao would like to cover them ALL by using segments with same length.There ar... 阅读全文
posted @ 2014-08-11 09:08 daydaycode 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 786Accepted Submission(s): 496Special JudgeProble... 阅读全文
posted @ 2014-08-07 09:57 daydaycode 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionDuring summer vacation,Alice stay at home for a long time, with nothing to do. She went out and bought m pokers, tending to play po... 阅读全文
posted @ 2014-08-06 21:26 daydaycode 阅读(177) 评论(0) 推荐(0) 编辑