标签:for names ring printf stream syn include code using
#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
#define ll long long
ll a[100000];
int main(){
ll n,i;
ios::sync_with_stdio(false);
cin. tie(0);cout.tie(0);
while(cin>>n){
ll c=0;
ll k=n;
for(i=2;i<=n;i++){
while(n%i==0){
a[c++]=i;
n/=i;
}
}
//cout<<k<<"=";
printf("%lld=",k);
for(i=0;i<c;i++)
printf(i==0?"%d":"*%d",a[i]);
cout<<endl;
}
return 0;
}
标签:for names ring printf stream syn include code using
原文地址:https://www.cnblogs.com/mch5201314/p/9713555.html