Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
18550 孤独摇滚!hts 构造数列 C++ 通过 42 MS 252 KB 292 2023-02-26 11:37:41

Tests(10/10):


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


测评信息: