提交时间:2023-02-26 11:36:45

运行 ID: 18549

#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"; } } return 0; }