摘要: Description Bessie is training for her next race by running on a path that includes hills so that she will be prepared for any terrain. She has planne 阅读全文
posted @ 2016-02-11 23:13 Not-Bad 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that d 阅读全文
posted @ 2016-02-11 22:34 Not-Bad 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Description The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in th 阅读全文
posted @ 2016-02-11 20:47 Not-Bad 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 利用辗转相除法求 两数的最大公因数 或 最小公倍数 例如 求6497和3869的最大公因数和最小公倍数 6497÷3869=1……2628 3869÷2628=1……1241 2628÷1241=1……146 1241÷146=8……73 146÷73=2……0 则 最大公因数为 73 最小公倍数为 阅读全文
posted @ 2016-02-11 20:45 Not-Bad 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Description HDU 2006'10 ACM contest的颁奖晚会隆重开始了! 为了活跃气氛,组织者举行了一个别开生面、奖品丰厚的抽奖活动,这个活动的具体要求是这样的: 首先,所有参加晚会的人员都将一张写有自己名字的字条放入抽奖箱中; 然后,待所有字条加入完毕,每人从箱中取一个字条; 阅读全文
posted @ 2016-02-11 19:58 Not-Bad 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Description 国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的: 首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排; 然后,让各位新郎寻找自己的新娘.每人只准找一个,并且不允许多 阅读全文
posted @ 2016-02-10 21:23 Not-Bad 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains two numbers A and B 阅读全文
posted @ 2016-02-10 20:01 Not-Bad 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on base ten, 阅读全文
posted @ 2016-02-10 19:07 Not-Bad 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the i 阅读全文
posted @ 2016-02-09 00:25 Not-Bad 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Description Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the n 阅读全文
posted @ 2016-02-08 23:26 Not-Bad 阅读(485) 评论(0) 推荐(0) 编辑