整数因子分解问题

时间:2015-07-10 13:06:57
【文件属性】:
文件名称:整数因子分解问题
文件大小:2.1MB
文件格式:ZIP
更新时间:2015-07-10 13:06:57
因子分解; 大于1 的正整数n 可以分解为:n=x1*x2*…*xm 。 例如,当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 共有多少种不同的分解式 。 数据输入 : 有m个输入数据,第1 行是m的个数,下m行有1 个正整数n (1 ≤n ≤1000000)。 结果输出: 输出有m行,每行是计算出的不同的分解式数。 输入样例: 1 12 输出样例: 8
【文件预览】:
1_3 整数因子分解问题
----ReadMe.txt(2KB)
----1_3 整数因子分解问题.vcxproj(4KB)
----1_3 整数因子分解问题.vcxproj.user(143B)
----1_3 整数因子分解问题.vcxproj.filters(1KB)
----stdafx.h(326B)
----Debug()
--------CL.write.1.tlog(1KB)
--------vc100.idb(275KB)
--------mt.read.1.tlog(442B)
--------link.4700-cvtres.read.1.tlog(2B)
--------1_3 整数因子分解问题_manifest.rc(216B)
--------link.4700.write.1.tlog(2B)
--------link.4700-cvtres.write.1.tlog(2B)
--------1_3 整数因子分解问题.exe.embed.manifest(406B)
--------link-cvtres.write.1.tlog(2B)
--------1_3 整数因子分解问题.exe.intermediate.manifest(381B)
--------rc.command.1.tlog(692B)
--------link.command.1.tlog(2KB)
--------vc100.pdb(332KB)
--------CL.read.1.tlog(7KB)
--------mt.write.1.tlog(442B)
--------link-cvtres.read.1.tlog(2B)
--------1_3 整数因子分解问题.obj(4KB)
--------rc.read.1.tlog(414B)
--------link.4700.read.1.tlog(2B)
--------1_3 整数因子分解问题.lastbuildstate(95B)
--------stdafx.obj(187KB)
--------mt.command.1.tlog(474B)
--------link.write.1.tlog(1KB)
--------cl.command.1.tlog(2KB)
--------rc.write.1.tlog(422B)
--------1_3 整数因子分解问题.exe.embed.manifest.res(472B)
--------link.read.1.tlog(3KB)
--------1_3 整数因子分解问题.pch(7.69MB)
--------1_3 整数因子分解问题.log(3KB)
----stdafx.cpp(530B)
----output.txt(1B)
----1_3 整数因子分解问题.cpp(179B)
----targetver.h(236B)
----out.txt(1B)
----in.txt(2B)

网友评论