提交时间:2023-02-26 11:40:47

运行 ID: 18552

#include <bits/stdc++.h> using namespace std; int T,n; cin>>T; while(T--){ cin>>n; int t=1; vector<int> s; while(n){ if(n%10!=0)s.push_back(n%10*t); n/=10; t*=10; } cout<<s.size()<<"\n"; for(auto a:s)cout<<a; cout<<"\n"; } return 0; }