最长连续因子
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.
Description
一个正整数 N 的因子中可能存在若干连续的数字。例如 630 可以分解为 3×5×6×7,其中 5、6、7 就是 3 个连续的数字。给定任一正整数 N,要求编写程序求出最长连续因子的个数,并输出最小的连续因子序列。
Input Format
输入在一行中给出一个正整数 。
Output Format
首先在第 1 行输出最长连续因子的个数;然后在第 2 行中按 因子1*因子2*……*因子k 的格式输出最小的连续因子序列,其中因子按递增顺序输出,1 不算在内。
630
3
5*6*7
集训队选拔测验(搁置)
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2022-6-6 19:00
- End at
- 2022-6-12 18:30
- Duration
- 143.5 hour(s)
- Host
- Partic.
- 2