Toggle navigation
拓智机器人OJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1210--因子分解
1210: 因子分解
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1
Solved:
1
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入一个数,输出其素因子分解表达式。
Input
输入一个整数 n (2≤n<100)。
Output
输出该整数的因子分解表达式。
表达式中各个素数从小到大排列。
如果该整数可以分解出因子a的b次方,当b大于1时,写做 a^b ;当b等于1时,则直接写成a。
Sample Input
Copy
60
Sample Output
Copy
2^2*3*5
Source/Category
递归算法