#include #include #include using namespace std;list BigAddList(list La,list Lb ){ list Lc; list ::iterator it1,it2; it1=La.begin(); it2=Lb.begin(); int carry=0; while(it1!=La.end()||it2!=Lb.end()) { int c=carry; if(it1!=La.end()) { c=c+(*it1); it1++; } if(it2!=Lb.end()) { c=c+(*it2); it2++; } carry=c/10; Lc.push_back(c%10); } if(carry>0) Lc.push_back(carry); return Lc;}int main(){ int i,T; cin>>T; for(int j=0;j >s>>t; list La,Lb,Lc; for(i=0;i
::iterator it=Lc.begin();it!=Lc.end();it++) { cout<<*it; } cout<