自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

因为刚好遇见你.

No pain , no gain ...

  • 博客(16)
  • 收藏
  • 关注

原创 求抛物线直线相交面积题(Problem ID:1071)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1071Problem DescriptionIgnatius bought a land last week, but he didn't know the area of the land because the land is enclosed by a parabola and a strai

2015-10-31 16:29:20 948

原创 猴子放箱子吃香蕉题(Problem ID:1069)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1069Problem DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building

2015-10-31 12:54:27 1902

原创 水上升下降抵消题(Problem ID:1049)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1049Problem DescriptionAn inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest

2015-10-30 09:02:50 342

原创 不超过地下通道题(Problem ID:1037)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1037Problem DescriptionBoudreaux and Thibodeaux are on the road again . . ."Boudreaux, we have to get this shipment of mudbugs to Baton Rouge by to

2015-10-30 09:00:27 804

原创 学生围成圈分糖果问题(Problem ID:1034)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1034Problem DescriptionA number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of

2015-10-29 16:17:03 1014

原创 Edge水流向题(Problem ID:1033)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1033Problem DescriptionFor products that are wrapped in small packings it is necessary that the sheet of paper containing the directions for use is fol

2015-10-29 12:55:23 371

原创 Safecracker--简单暴力枚举(Problem ID:1015)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1015Problem Description=== Op tech briefing, 2002/11/02 06:42 CST === "The item is locked in a Klein safe behind a painting in the second-floor l

2015-10-29 12:35:49 351

转载 有关二叉树的三种遍历方式------先序,中序,后序

对于二叉树的三种遍历方式:1、先序遍历:先序遍历是先输出根节点,再输出左子树,最后输出右子树。上图的先序遍历结果就是:ABCDEF2、中序遍历:中序遍历是先输出左子树,再输出根节点,最后输出右子树。上图的中序遍历结果就是:CBDAEF3、后序遍历:后序遍历是先输出左子树,再输出右子树,最后输出根节点。上图的后序遍历结果就是:CDBFEA完整代码如下:

2015-10-29 12:23:58 944

转载 数据结构与算法面试题80道

数据结构与算法面试题80道 转自:http://hi.baidu.com/geogre_jsj/blog/item/e4b98fd2aab5aa3611df9b92.html由于这些题,实在太火了。所以,应广大网友建议要求,在此把之前已整理公布的前80题,现在,一次性分享出来。此也算是前80题第一次集体亮相。此些题,已有上万人,看到或见识到,若私自据

2015-10-28 14:07:51 627

转载 并查集优化之路径压缩

使用并查集查找时,如果查找次数很多,那么使用普通版本的查找方式肯定要超时。比如,有一百万个元素,每次都从第一百万个开始找,这样一次运算就是10^6,如果程序要求查找个一千万次,这样下来就是10^13,肯定要出问题的。普通并查集查找的代码,适合数据量不大的情况:int findx(int x){ int r=x; while(parent[r] !=r)

2015-10-28 13:48:07 739

原创 u calculate e → 计算e题(Problem ID:1012)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1012简单题Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate a

2015-10-28 09:30:58 369

原创 骨头陷阱,小狗过迷宫题(Problem ID:1010)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1010Problem DescriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake,

2015-10-28 09:11:27 729

原创 老鼠和猫换食物题:(Problem ID:1009)

题址:http://acm.hdu.edu.cn/showproblem.php?pid=1009Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, Ja

2015-10-28 08:14:31 473

原创 数学归纳法题:(Problem ID:1098)

简单数学归纳题:Problem DescriptionIgnatius is poor at math,he falls across a puzzle problem,so he has no choice but to appeal to Eddy. this problem describes that:f(x)=5*x^13+13*x^5+k*a*x,input a nonegat

2015-10-28 08:09:51 404

原创 HDU 算术不同解法题:(Problem ID:1028)

HDU题址:http://acm.hdu.edu.cn/showproblem.php?pid=1028Problem Description"Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says."The s

2015-10-27 18:31:21 435

原创 HDU 电梯题:(Problem ID:1008)

HDU 题址:http://acm.hdu.edu.cn/showproblem.php?pid=1008Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The num

2015-10-27 18:22:04 411

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除