From cf3ca790e9bc65f31331252124925a1f3eb7514d Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Wed, 17 Aug 2016 15:00:36 +0800 Subject: [PATCH] Create 1792_42170.cpp From http://codevs.cn/wiki/solution/?problem_id=1792 --- CodeVS/1792_42170.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CodeVS/1792_42170.cpp diff --git a/CodeVS/1792_42170.cpp b/CodeVS/1792_42170.cpp new file mode 100644 index 0000000..dde87c1 --- /dev/null +++ b/CodeVS/1792_42170.cpp @@ -0,0 +1,22 @@ +#include +int main() +{ +int N,i; +scanf("%d",&N); +printf("%d=",N); +for(i=2;i<=N;i++) +{ +while(N%i==0) +{ +printf("%d",i); +N=N/i; +if(N