摘要: 1007: 数的分解Time Limit:1 SecMemory Limit:32 MBDescription大于1的正整数n可以分解为:n=x1*x2*…*xm。 (xi != 1 )例如,当n=12 时,共有8 种不同的分解式:12=12; 12=6*2; 12=4*3; 12=3*4; 12=3*2*2; 12=2*6; 12=2*3*2; 12=2*2*3。当n为质数时,至少也有一种分解法:n = n。对于给定的正整数n,计算n共有多少种不同的分解式。Input多组数据,可能会有超过10000组。每组数据输入一行整数N。(0 2 #include 3 using namespace.. 阅读全文
posted @ 2013-12-27 21:23 厕所门口~~ 阅读(619) 评论(0) 推荐(0) 编辑