//C++版代码 #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); string a, b; while (cin >> a >> b) { int max_length = max(a.length(), b.length()); a = string(max_length - a.length(), '0') + a; ...