摘要: Description A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the 阅读全文
posted @ 2018-12-23 14:17 虚拟北方virtual_north。 阅读(159) 评论(1) 推荐(0) 编辑
摘要: Description 给定一个整数N,把N!分解质因子,N!=∑pi^ci 其中(pi为质数,且p1 Input 一个整数N。 Output 输出质因数 次数 Hint 1 Solution N!中质因子的个数就等于1~N每个数包含质因子p的个数之和。在1~N中,至少包含一个p的有N/p个,而包含 阅读全文
posted @ 2018-12-23 11:40 虚拟北方virtual_north。 阅读(198) 评论(0) 推荐(0) 编辑