摘要: A pair of numbers has a unique LCM but a single number can be the LCM of more than one possiblepairs. For example 12 is the LCM of (1, 12), (2, 12), (... 阅读全文
posted @ 2015-12-26 17:50 meekyan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: A pair of numbers has a unique LCM but a single number can be the LCM of more than one possiblepairs. For example 12 is the LCM of (1, 12), (2, 12), (... 阅读全文
posted @ 2015-12-26 17:45 meekyan 阅读(293) 评论(0) 推荐(0) 编辑
摘要: The problem statement is very easy. Given a number n you have to determine the largest power of m,not necessarily prime, that divides n!.InputThe inpu... 阅读全文
posted @ 2015-12-26 17:41 meekyan 阅读(217) 评论(0) 推荐(0) 编辑
摘要: In a galaxy far far away there is an ancient game played among the planets. The specialty of the gameis that there is no limitation on the number of p... 阅读全文
posted @ 2015-12-26 17:19 meekyan 阅读(380) 评论(0) 推荐(0) 编辑