#include using namespace std; int main() { int test; cin>>test; while(test--) { int n; cin>>n; vector< int> arr; int i, j, x, y; for(i=0;i>x; while(x>0) { y=x%10; arr.push_back(y); x/=10;} } n=arr.size(); int sum=0; for(i=0;i