class Solution { public: void add(string &ans,char x,char y,int &d) { int res = x - '0' + y - '0' + d; ans += (res % 10 + '0'); d = res / 10; } string solve(string s, string t) { reverse(s.begin(),s.end()); reverse(t.begin(),t.end()); ...