提交时间:2024-05-18 15:35:39

运行 ID: 147490

#include<bits/stdc++.h> //#include<iostream> //#include<cstdio> //#include<iomanip> using namespace std; int main() { int a,b,c,d,e; cin>>a; b=a%10;//Ones c=a/10%10;//Tens d=a/100%10;//Hundreds e=a/1000;//thousand if(b!=0){ cout<<b;} if(c!=0){ cout<<c;} if(d!=0){ cout<<d;} cout<<e; return 0; }