当前位置:网站首页>Zzuli:1071 decomposing prime factor
Zzuli:1071 decomposing prime factor
2022-06-28 05:27:00 【Don't explode】
Title Description
Divide a positive integer into prime factors , for example , Input 90, Output 2 3 3 5.
Input
Enter a positive integer n(2<=n<=2000).
Output
From small to large output n All the qualitative factors of , There is a space between every two numbers .
The sample input Copy
20
Sample output Copy
2 2 5
#include <stdio.h>
int main()
{
int n,i,k;
scanf("%d",&n);
i=2;
do
{
if(n%i==0)
{
if(n==i)
printf("%d",i);
else
printf("%d ",i);
n=n/i;
}
else
i++;
} while(n/i!=0);
return 0;
}边栏推荐
- JS text box loses focus to modify width text and symbols
- Store inventory management system source code
- Online yaml to JSON tool
- Docker安装Mysql5.7并开启binlog
- Is it enough for the project manager to finish the PMP? no, it isn't!
- 分享|智慧环保-生态文明信息化解决方案(附PDF)
- What is the difference between AC and DC?
- Simulation questions and answers of the latest national fire-fighting facility operators (primary fire-fighting facility operators) in 2022
- Carboxylic acid study: lumiprobe sulfoacyanine 7 dicarboxylic acid
- Study on modified triphosphate: lumiprobe amino-11-ddutp
猜你喜欢
随机推荐
Qcom LCD commissioning
【SkyWalking】一口气学完分布式链路追踪SkyWalking
DPDK 源码测试时性能下降问题
109. simple chat room 12: realize client-side one-to-one chat
Assembly common instructions
Object detection with OpenCV
MySQL export database dictionary to excel file
Docker安装Mysql5.7并开启binlog
metaRTC5.0 API编程指南(一)
Have you finished the examination of level II cost engineer? There are also qualification regulations!
Unity delegate
Biovendor sRAGE antibody solution
IP datagram sending and forwarding process
The latest examination questions and answers for the eight members (standard members) of Liaoning architecture in 2022
What are functions in C language? What is the difference between functions in programming and functions in mathematics? Understanding functions in programming languages
BioVendor sRAGE Elisa试剂盒化学性质和技术研究
摄像头基础知识
Amino dye research: lumiprobe fam amine, 6-isomer
Prove that there are infinite primes / primes
Lumiprobe cell imaging analysis: PKH26 cell membrane labeling kit








