Type: Default 1000ms 256MiB

分解因数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

给出一个正整数a,要求分解成若干个正整数的乘积,即a=a1_1×a2_2×a3_3×...×an_n,并且1<a1_1≤a2_2≤a3_3≤...≤an_n ,问这样的分解的种数有多少。注意到a=a也是一种分解。

【输入格式】

第1行是测试数据的组数n,后面跟着n行输入。每组测试数据占1行,包括一个正整数a(1<a<32768)。

【输出格式】

n行,每行输出对应一个输入。输出应是一个正整数,指明满足要求的分解的种数。

【样例数据】

2
2
20
1
4

算法系列之递归

Not Claimed
Status
Done
Problem
8
Open Since
2025-11-29 0:00
Deadline
2025-12-13 23:59
Extension
24 hour(s)