摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
利用辗转相除法求 两数的最大公因数 或 最小公倍数 例如 求6497和3869的最大公因数和最小公倍数 6497÷3869=1……2628 3869÷2628=1……1241 2628÷1241=1……146 1241÷146=8……73 146÷73=2……0 则 最大公因数为 73 最小公倍数为 阅读全文
摘要:
Description HDU 2006'10 ACM contest的颁奖晚会隆重开始了! 为了活跃气氛,组织者举行了一个别开生面、奖品丰厚的抽奖活动,这个活动的具体要求是这样的: 首先,所有参加晚会的人员都将一张写有自己名字的字条放入抽奖箱中; 然后,待所有字条加入完毕,每人从箱中取一个字条; 阅读全文