活动地址: 牛客春招刷题训练营 - 编程打卡活动 简单题 字符串分隔 记 为字符串的长度。 当 不为 的倍数时在字符串后面补 。 利用 substr() 对字符串切片输出。 字符串的 substr(i, n) 成员函数会返回 中下标为 的子串。 #include <iostream> using namespace std; int main() { string s; cin >> s; while (s.length() % 8 != 0) s += "0"; for (int i = ...