提交时间:2023-02-26 11:37:41

运行 ID: 18550

#include "bits/stdc++.h" using namespace std; int main(){ 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=t*10; } cout<<s.size()<<"\n"; for(auto a:s)cout<<a<<" "; cout<<"\n"; } }