文章
10
粉丝
17
获赞
0
访问
4.0k
#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y = 0;
int count = 0;
int z[10]={-1};
scanf("%d",&x);
while(x>0){
z[count] = x % 10;
y = y * 10 + z[count];
x = x / 10;
count++;
}
printf("%d\n", count);
while(count--){
printf("%d ", z[count]);
}
printf("\n%d", y);
return 0;
}
登录后发布评论
暂无评论,来抢沙发