觉得浮夸了四年,漠然发现原来是浮躁了四年!

文章分类 -  Basic problem

摘要:R(N)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1458 Accepted Submission(s): 762 Problem DescriptionWe know that some positive integer x can be expressed as x=A^2+B^2(A,B are integers). Take x=10 for example, 10=(-3)^2+1^2. We define R(N) (N 阅读全文
posted @ 2012-12-01 14:16 heat nan 阅读(231) 评论(0) 推荐(0) 编辑
摘要:problem link address :http://acm.hdu.edu.cn/showproblem.php?pid=2199在顺序搜索的数组实现中,如果把分治思想思想应用于搜索过程,就会大大缩短搜索的总时间。实现方法:把数据分为两部分,确定搜索关键字属于那一部分然后集中搜索这一部分,然后依次类推,每次把处理的部分分为两部分,因此,这种方法称为“二分法”。关于本题:典型的二分查找。应为本题有明显的特征: 查找范围0~100,并且有唯一解。 Code 1 #include<iostream> 2 #include<cmath> 3 using namespace 阅读全文
posted @ 2012-11-22 17:56 heat nan 阅读(137) 评论(0) 推荐(0) 编辑
摘要:Problem webpage:http://acm.hdu.edu.cn/showproblem.php?pid=4461Problem analysis:This is one of the 2012 Asia Hangzhou Regional Contest problems, what I want to say is this problem is just proved that you joined the contest;The only problem is the problem description is too long>After reading the p 阅读全文
posted @ 2012-11-09 19:20 heat nan 阅读(109) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionWangpeng has N clothes, M pants and K shoes so theoretically he can have N×M×K different combinations of dressing.One day he wears his pants Nike, shoes Adiwang to go to school happily. When he opens the door, his mom asks him to come back and switch the dressing. Mom th 阅读全文
posted @ 2012-11-04 19:54 heat nan 阅读(146) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionNew Year is Coming! ailyanlu is very happy today! and he is playing a chessboard game with 8600. The size of the chessboard is n*n. A stone is placed in a corner square. They play alternatively with 8600 having the first move. Each time, player is allowed to move the stone to an u 阅读全文
posted @ 2012-11-03 10:12 heat nan 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionAlice and Bob are the topmost hunters in the forest, so no preys can escape from them. However, they both think that its hunting skill is better than the other. So they need a match.In their match, the targets are two animals, a tiger and a wolf. They both know that the tiger is l 阅读全文
posted @ 2012-11-02 23:53 heat nan 阅读(134) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionWangpeng is good at drawing. Now he wants to say numbers like “521” to his girlfriend through the game draw something.Wangpeng can’t write the digit directly. So he comes up a way that drawing several squares and the total area of squares is the number he wants to say.Input all th 阅读全文
posted @ 2012-11-02 12:52 heat nan 阅读(171) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionFor a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2.InputThe first line is an integer T, which is the the number of cases.Then T line followed each containing an integer n (1<=n <= 10^9).OutputFor e 阅读全文
posted @ 2012-11-01 22:37 heat nan 阅读(129) 评论(0) 推荐(0) 编辑
摘要:PairsTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 329 Accepted Submission(s): 159Problem DescriptionGiven n positive integers, is it possible to divide them into pairs so that the sum of each pair is the same?InputThe input contains several tes 阅读全文
posted @ 2012-10-29 10:18 heat nan 阅读(215) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示