# include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a<=99999&&a>9999) printf("5\n%d %d %d %d %d\n%d %d %d %d %d",a/10000,a/1000-(a/10000)*10,a/100-(a/1000)*10,a/10-(a/100)*10,a-(a/10)*10,a-(a/10)*10,a/10-(a/100)*10,a/100-(a/1000)*10,a/1000-(a/10000)*10,a/10000);
else if(a<=9999&&a>999) printf("4\n%d %d %d %d\n%d %d %d %d",a/1000,a/100-(a/1000)*10,a/10-(a/100)*10,a-(a/10)*10,a-(a/10)*10,a/10-(a/100)*10,a/100-(a/1000)*10,a/1000);
else if(a<=999&&a>99) printf("3\n%d %d %d\n%d %d %d",a/100,a/10-(a/100)*10,a-(a/10)*10,a-(a/10)*10,a/10-(a/100)*10,a/100);
else if(a<=99&&a>9) printf("2\n%d %d\n%d %d",a/10,a-(a/10)*10,a-(a/10)*10,a/10);
else if(a<=9&&a>0) printf("1\n%d\n%d",a,a);
return 0;
int main()
{
int a;
scanf("%d",&a);
if(a<=99999&&a>9999) printf("5\n%d %d %d %d %d\n%d %d %d %d %d",a/10000,a/1000-(a/10000)*10,a/100-(a/1000)*10,a/10-(a/100)*10,a-(a/10)*10,a-(a/10)*10,a/10-(a/100)*10,a/100-(a/1000)*10,a/1000-(a/10000)*10,a/10000);
else if(a<=9999&&a>999) printf("4\n%d %d %d %d\n%d %d %d %d",a/1000,a/100-(a/1000)*10,a/10-(a/100)*10,a-(a/10)*10,a-(a/10)*10,a/10-(a/100)*10,a/100-(a/1000)*10,a/1000);
else if(a<=999&&a>99) printf("3\n%d %d %d\n%d %d %d",a/100,a/10-(a/100)*10,a-(a/10)*10,a-(a/10)*10,a/10-(a/100)*10,a/100);
else if(a<=99&&a>9) printf("2\n%d %d\n%d %d",a/10,a-(a/10)*10,a-(a/10)*10,a/10);
else if(a<=9&&a>0) printf("1\n%d\n%d",a,a);
return 0;
}
这个else if 应该可以不用打if 吧