没什么好说的,先补0,再输出。 #include <string> #include <vector> #include <iostream> using namespace std; int main() { string s; cin >> s; int remind = s.length() % 8; if (remind) { s.append(8-remind, '0'); } for (int i = 0; i < s.length(); i +=...