#include<stdio.h>
int main(){
int a,b,c,d,e,n;
a=n/10000; //万位
b=n%10000/1000; //千位
c=n%1000/100; //百位
d=n%100/10; //十位
e=n%10; //个位
if(a!=0)
printf("%d是5位数,逆序各位分别是:%d,%d,%d,%d,%d",n
,e
,d
,c
,b
,a
); else if(b!=0)
printf("%d是4位数,逆序各位分别是:%d,%d,%d,%d",n
,e
,d
,c
,b
); else if(c!=0)
printf("%d是3位数,逆序各位分别是:%d,%d,%d",n
,e
,d
,c
); else if(d!=0)
printf("%d是2位数,逆序各位分别是:%d,%d",n
,e
,d
); else
printf("%d是1位数,逆序各位分别是:%d",n
,e
); return 0;
}
CiNpbmNsdWRlPHN0ZGlvLmg+CiAKaW50IG1haW4oKXsKICAgIGludCBhLGIsYyxkLGUsbjsKICAgIHByaW50Zigi6K+36L6T5YWl5LiA5Liq5LiN5aSa5LqONeS9jeaVsOeahOato+aVtOaVsO+8miAiKTsKICAgIHNjYW5mKCIlZCIsJm4pOwogICAgYT1uLzEwMDAwOyAgLy/kuIfkvY0KICAgIGI9biUxMDAwMC8xMDAwOyAvL+WNg+S9jQogICAgYz1uJTEwMDAvMTAwOyAgIC8v55m+5L2NCiAgICBkPW4lMTAwLzEwOyAvL+WNgeS9jQogICAgZT1uJTEwOyAgLy/kuKrkvY0KIAogICAgaWYoYSE9MCkKICAgICAgICBwcmludGYoIiVk5pivNeS9jeaVsO+8jOmAhuW6j+WQhOS9jeWIhuWIq+aYr++8miVkLCVkLCVkLCVkLCVkIixuLGUsZCxjLGIsYSk7CiAgICBlbHNlIGlmKGIhPTApCiAgICAgICAgcHJpbnRmKCIlZOaYrzTkvY3mlbDvvIzpgIbluo/lkITkvY3liIbliKvmmK/vvJolZCwlZCwlZCwlZCIsbixlLGQsYyxiKTsKICAgIGVsc2UgaWYoYyE9MCkKICAgICAgICBwcmludGYoIiVk5pivM+S9jeaVsO+8jOmAhuW6j+WQhOS9jeWIhuWIq+aYr++8miVkLCVkLCVkIixuLGUsZCxjKTsKICAgIGVsc2UgaWYoZCE9MCkKICAgICAgICBwcmludGYoIiVk5pivMuS9jeaVsO+8jOmAhuW6j+WQhOS9jeWIhuWIq+aYr++8miVkLCVkIixuLGUsZCk7CiAgICBlbHNlCiAgICAgICAgcHJpbnRmKCIlZOaYrzHkvY3mlbDvvIzpgIbluo/lkITkvY3liIbliKvmmK/vvJolZCIsbixlKTsKICAgIHJldHVybiAwOwp9