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.

【问题描述】

输入一个数,输出其素因子分解表达式。

【输入格式】

输入一个整数 n (2≤n<100)。

【输出格式】

(1)输出该整数的因子分解表达式。

(2)表达式中各个素数从小到大排列。

(3)如果该整数可以分解出因子a的b次方,当b大于1时,写做 a^b ;当b等于1时,则直接写成a。

【样例数据】

60
2^2*3*5

算法系列之递归

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