标签:io ar os sp for bs size nbsp c
题目描述:
就是说 给出188 转化为
64 24 8 结束
直接模拟
#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cstdlib>
using namespace std;
char s[1000];
int main()
{
int sum=1;
scanf("%s",s);
while(true)
{
int len=strlen(s);
for(int i=0;i<len;i++)
sum=sum*((int)s[i]-48);
printf("%d ",sum);
if(sum/10==0)
break;
memset(s,0,sizeof(s));
sprintf(s,"%d",sum);
sum=1;
}
return 0;
}
标签:io ar os sp for bs size nbsp c
原文地址:http://www.cnblogs.com/a972290869/p/4101144.html