题解 | 字符串分隔
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string a;
cin>>a;
while(a.length() % 8)
{
a +='0';
}
for(int i=0;i<a.size();i++)
{
cout<<a[i];
if((i+1) % 8 == 0)
{
cout<<endl;
}
}
}
// 64 位输出请用 printf("%lld")
