forked from Doragd/Algorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
HJ6 质数因子 #6
Copy link
Copy link
Open
Labels
排序排序排序
Description
sumulige
opened on Dec 26, 2023
Issue body actions
- 功能:输入一个正整数,按照从小到大的顺序输出它的所有质因子(重复的也要列举)(如180的质因子为2 2 3 3 5 )
- 数据范围:
$1 \le n \le 2 \times 10^{9} + 14 $ - 取模遍历+问题分解+分类讨论
- 注意取值范围 nextint nextlong
- 取模判断 整除就返回此因子 然后继续递归
- 记得相加
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
排序排序排序