题目链接:https://www.nowcoder.com/practice/fa2e02625a8541beb2309fcb7ab31e5b?tpId=37&tqId=21327&rp=1&ru=/activity/oj&qru=/ta/huawei/question-ranking
#include<iostream>
#include<vector>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
string str[100];
for(int i=0;i<n;i++)
{
cin>>str[i];
}
string temp;
int j;
for(int i=0;i<n;i++)
{
temp = str[i];
for(j=0;j<temp.size();j++)
{
cout<<temp[j];
if((j+1)%8==0)
{
cout<<endl;
}
}
if(j%8!=0)
{
for(int k=j%8;k<8;k++)
{
cout<<0;
}
cout<<endl;
}
}
}
return 0;
}